Skip to content

Commit

Permalink
Prefix magic (#117)
Browse files Browse the repository at this point in the history
* API double prefix
  • Loading branch information
annejan authored Jun 24, 2022
1 parent 4ad3814 commit 2b14449
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Http/Controllers/MchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MchController extends Controller
* List the available devices.
*
* @OA\Get(
* path="/mch2022/devices",
* path="/devices",
* tags={"MCH2022"},
* @OA\Response(response="default",ref="#/components/responses/undocumented")
* )
Expand Down Expand Up @@ -47,7 +47,7 @@ public function devices(): JsonResponse
* Get the types of apps a device supports.
*
* @OA\Get(
* path="/mch2022/{device}/types",
* path="/{device}/types",
* @OA\Parameter(
* name="device",
* in="path",
Expand All @@ -72,7 +72,7 @@ public function types(string $device): JsonResponse
* Get the types of apps a device supports.
*
* @OA\Get(
* path="/mch2022/{device}/{type}/categories",
* path="/{device}/{type}/categories",
* @OA\Parameter(
* name="device",
* in="path",
Expand Down Expand Up @@ -121,7 +121,7 @@ public function categories(string $device, string $type): JsonResponse
* Get the apps from a device / type / category
*
* @OA\Get(
* path="/mch2022/{device}/{type}/{category}",
* path="/{device}/{type}/{category}",
* @OA\Parameter(
* name="device",
* in="path",
Expand Down Expand Up @@ -174,7 +174,7 @@ public function apps(string $device, string $type, string $category): JsonRespon
* Get the apps from a device / type / category
*
* @OA\Get(
* path="/mch2022/{device}/{type}/{category}/{app}",
* path="/{device}/{type}/{category}/{app}",
* @OA\Parameter(
* name="device",
* in="path",
Expand Down Expand Up @@ -256,7 +256,7 @@ public function app(string $device, string $type, string $category, string $app)
* Get app file content
*
* @OA\Get(
* path="/mch2022/{device}/{type}/{category}/{app}/{file}",
* path="/{device}/{type}/{category}/{app}/{file}",
* @OA\Parameter(
* name="device",
* in="path",
Expand Down

0 comments on commit 2b14449

Please sign in to comment.