Commit e3b079b9 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

WIP API : prefixage des URLS par /api (version après, ex : /api/v1)

parent f5db09a3
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ return [
        ]
    ],
    'api-tools-versioning' => [
        'default_version' => 1,
        'uri' => [
            0 => 'api.rest.ping',
            1 => 'api.rest.diplomation',
+4 −4
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ return [
            'api.rest.ping' => [
                'type' => 'Segment',
                'options' => [
                    'route' => '/ping[/:ping_id]',
                    'route' => '/api[/v:version]/ping[/:ping_id]',
                    'defaults' => [
                        'controller' => 'SygalApi\\V1\\Rest\\Ping\\Controller',
                    ],
@@ -39,7 +39,7 @@ return [
            'api.rest.diplomation' => [
                'type' => 'Segment',
                'options' => [
                    'route' => '/diplomation[/:diplomation_id]',
                    'route' => '/api[/v:version]/diplomation[/:diplomation_id]',
                    'defaults' => [
                        'controller' => 'SygalApi\\V1\\Rest\\Diplomation\\Controller',
                    ],
@@ -48,7 +48,7 @@ return [
            'api.rest.inscription' => [
                'type' => 'Segment',
                'options' => [
                    'route' => '/inscription-administrative[/:inscription_id]',
                    'route' => '/api[/v:version]/inscription-administrative[/:inscription_id]',
                    'defaults' => [
                        'controller' => 'SygalApi\\V1\\Rest\\InscriptionAdministrative\\Controller',
                    ],
@@ -57,7 +57,7 @@ return [
            'api.rest.doctorant' => [
                'type' => 'Segment',
                'options' => [
                    'route' => '/doctorant[/:doctorant_id]',
                    'route' => '/api[/v:version]/doctorant[/:doctorant_id]',
                    'defaults' => [
                        'controller' => 'SygalApi\\V1\\Rest\\Doctorant\\Controller',
                    ],