<?php #CodeGenerator V3 Δ e7b3a603b9a0a5882ef801d062da0f55 Δ DYNAMICALLY GENERATED FILE - Do not modify this line! Remove it completely to protect the file from changes.
/**
 * JSON:API Server Class
 *
 * @version     1.0.$Revision:$
 * @version     SVN: $Id:$
 * @version     STUB: 1.0.0
 * @generated   2026-05-27 10:03:43
 * @package     bplan-base/globals
 * @subpackage  Servers
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 * @copyright   Copyright (C) 2025, 2026 bplan-solutions GmbH & Co. KG <https://www.bplan-solutions.de/>
 * /Δ\
 */

namespace BplanBase\Globals\JsonApi\Terminal;


use Illuminate\Support\Facades\Auth;
use LaravelJsonApi\Core\Server\Server as BaseServer;


/**
 * JSON:API Server Class
 *
 * @version     1.0.0 / 2026-05-27
 * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 */
class Server extends BaseServer
{


/* +++ TRAITS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ CLASS CONSTANTS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT MEMBERS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


    /**
     * The base URI namespace for this server.
     *
     * @var     string
     */
    protected string $baseUri = '/api/terminal';


/* +++ CLASS MEMBERS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* +++ OBJECT METHODS +++ +++++++++++++++++++++++++++++++++++++++++++++++++++ */


    /**
     * Get the server's list of schemas.
     *
     * @return      array
     *
     * @version     1.0.0 / 2026-05-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    protected function allSchemas(): array
    {
        return [
            Countries\CountrySchema::class,
            EntityTypes\EntityTypeSchema::class,
            EntityTypeFields\EntityTypeFieldSchema::class,
            EntityTypeModels\EntityTypeModelSchema::class,
            ExternalSystems\ExternalSystemSchema::class,
            GlobalSettings\GlobalSettingSchema::class,
            ImportLogs\ImportLogSchema::class,
            ImportLogRecords\ImportLogRecordSchema::class,
            Individuals\IndividualSchema::class,
            Languages\LanguageSchema::class,
            Locations\LocationSchema::class,
            LocationPrinters\LocationPrinterSchema::class,
            LocationTypes\LocationTypeSchema::class,
            Modules\ModuleSchema::class,
            ModuleTenants\ModuleTenantSchema::class,
            Permissions\PermissionSchema::class,
            Printers\PrinterSchema::class,
            PrinterTypes\PrinterTypeSchema::class,
            PrintJobs\PrintJobSchema::class,
            Roles\RoleSchema::class,
            Tenants\TenantSchema::class,
            TenantExternalSystems\TenantExternalSystemSchema::class,
            TenantLocales\TenantLocaleSchema::class,
            TenantRecords\TenantRecordSchema::class,
            TenantUsers\TenantUserSchema::class,
            TerminalConnections\TerminalConnectionSchema::class,
            Users\UserSchema::class,
            UserRecords\UserRecordSchema::class,
        ];
    } // allSchemas()


    /**
     * Bootstrap the server when it is handling an HTTP request.
     *
     * @return      void
     *
     * @version     1.0.0 / 2026-05-27
     * @author      Emilio Cannarozzo <emilio.cannarozzo@bplan-solutions.de>
     * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
     */
    public function serving(): void
    {
        Auth::shouldUse('sanctum');

    } // serving()


/* +++ CLASS METHODS +++ ++++++++++++++++++++++++++++++++++++++++++++++++++++ */


} // class Server extends BaseServer {}
