<?php #CodeGenerator V3 Δ bd2e770b6c3b410653dfaf6681f0b33c Δ 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-10 12:59:22
 * @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\Data;


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


/**
 * JSON:API Server Class
 *
 * @version     1.0.0 / 2026-05-10
 * @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/data';


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


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


    /**
     * Get the server's list of schemas.
     *
     * @return      array
     *
     * @version     1.0.0 / 2026-05-10
     * @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,
            Printers\PrinterSchema::class,
            PrinterTypes\PrinterTypeSchema::class,
            PrintJobs\PrintJobSchema::class,
            Roles\RoleSchema::class,
            RoleUsers\RoleUserSchema::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-10
     * @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 {}
