<?php #CodeGenerator V4 Δ 7ec422563917125cb6042b49272c4cf2 Δ 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-03-23 15:02:31
 * @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-03-23
 * @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-03-23
     * @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,
            LocationTypes\LocationTypeSchema::class,
            Modules\ModuleSchema::class,
            ModuleTenants\ModuleTenantSchema::class,
            Roles\RoleSchema::class,
            RoleUsers\RoleUserSchema::class,
            Tenants\TenantSchema::class,
            TenantExternalSystems\TenantExternalSystemSchema::class,
            TenantLocales\TenantLocaleSchema::class,
            TenantRecords\TenantRecordSchema::class,
            TenantUsers\TenantUserSchema::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-03-23
     * @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 {}
