<?php

/**
 * API Docs module manifest.
 *
 * Provides a Swagger UI viewer for the project's OpenAPI specification.
 */
return [
    'id' => 'api-docs',
    'version' => '1.0.0',
    'enabled_by_default' => false,
    'load_order' => 20,
    'requires' => [],

    'routes' => [
        ['path' => 'admin/api-docs', 'target' => 'api-docs'],
        ['path' => 'admin/api-docs/spec', 'target' => 'api-docs/spec'],
    ],
    'public_paths' => [],
    'container_registrars' => [
        \MintyPHP\Module\ApiDocs\ApiDocsContainerRegistrar::class,
    ],

    'ui_slots' => [
    ],

    'authorization_policies' => [
        \MintyPHP\Module\ApiDocs\ApiDocsAuthorizationPolicy::class,
    ],

    'search_resources' => [],

    'asset_groups' => [
        'api-docs' => [
            'modules/api-docs/css/vendor-overrides/swagger-ui.css',
        ],
    ],

    'scheduler_jobs' => [],
    'layout_context_providers' => [],
    'session_providers' => [],

    'permissions' => [
        [
            'key' => 'api_docs.view',
            'description' => 'Can view API documentation',
            'active' => true,
            'is_system' => true,
        ],
    ],

    'event_listeners' => [],
    'deactivation_handler' => null,
    'migrations_path' => null,
    'i18n_path' => 'i18n',
];
