Skip to content

Commit

Permalink
rename security schema to bmltToken (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv authored Oct 6, 2022
1 parent a528ba6 commit 6753377
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 54 deletions.
2 changes: 1 addition & 1 deletion src/app/Http/Controllers/Admin/Swagger/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @OA\Server(url="https://{domain}", description="BMLT Admin API Custom Server",
* @OA\ServerVariable(serverVariable="domain", default="")
* )
* @OA\SecurityScheme(securityScheme="oauth2", type="oauth2",
* @OA\SecurityScheme(securityScheme="bmltToken", type="oauth2",
* @OA\Flow(flow="password", tokenUrl="api/v1/auth/token", refreshUrl="api/v1/auth/refresh", scopes={})
* )
*/
Expand Down
12 changes: 6 additions & 6 deletions src/app/Http/Controllers/Admin/Swagger/FormatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class FormatController extends Controller
{

/**
* @OA\Get(path="/api/v1/formats", summary="Retrieves formats", description="Retrieve formats", operationId="getFormats", tags={"formats"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/formats", summary="Retrieves formats", description="Retrieve formats", operationId="getFormats", tags={"formats"}, security={{"bmltToken":{}}},
* @OA\Response(response=200, description="Returns when user is authenticated.",
* @OA\JsonContent(ref="#/components/schemas/FormatCollection")
* ),
Expand All @@ -54,7 +54,7 @@ public function index()
}

/**
* @OA\Get(path="/api/v1/formats/{formatId}", summary="Retrieves a format", description="Retrieve a format", operationId="getFormat", tags={"formats"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/formats/{formatId}", summary="Retrieves a format", description="Retrieve a format", operationId="getFormat", tags={"formats"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of format", in="path", name="formatId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -74,7 +74,7 @@ public function show()
}

/**
* @OA\Post(path="/api/v1/formats", summary="Creates a format", description="Creates a format.", operationId="createFormat", tags={"formats"}, security={{"oauth2":{}}},
* @OA\Post(path="/api/v1/formats", summary="Creates a format", description="Creates a format.", operationId="createFormat", tags={"formats"}, security={{"bmltToken":{}}},
* @OA\RequestBody(required=true, description="Pass in format object",
* @OA\JsonContent(ref="#/components/schemas/CreateFormat"),
* ),
Expand All @@ -100,7 +100,7 @@ public function store()
}

/**
* @OA\Put( path="/api/v1/formats/{formatId}", summary="Updates a format", description="Updates a format.", operationId="updateFormat", tags={"formats"}, security={{"oauth2":{}}},
* @OA\Put( path="/api/v1/formats/{formatId}", summary="Updates a format", description="Updates a format.", operationId="updateFormat", tags={"formats"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of format", in="path", name="formatId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -127,7 +127,7 @@ public function update()
}

/**
* @OA\Patch(path="/api/v1/formats/{formatId}", summary="Patches a format", description="Patches a single format by id.", operationId="patchFormat", tags={"formats"}, security={{"oauth2":{}}},
* @OA\Patch(path="/api/v1/formats/{formatId}", summary="Patches a format", description="Patches a single format by id.", operationId="patchFormat", tags={"formats"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of format", in="path", name="formatId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -154,7 +154,7 @@ public function partialUpdate()
}

/**
* @OA\Delete(path="/api/v1/formats/{formatId}", summary="Deletes a format", description="Deletes a format by id.", operationId="deleteFormat", tags={"formats"}, security={{"oauth2":{}}},
* @OA\Delete(path="/api/v1/formats/{formatId}", summary="Deletes a format", description="Deletes a format by id.", operationId="deleteFormat", tags={"formats"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of format", in="path", name="formatId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand Down
12 changes: 6 additions & 6 deletions src/app/Http/Controllers/Admin/Swagger/MeetingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MeetingController extends Controller
{

/**
* @OA\Get(path="/api/v1/meetings", summary="Retrieves meetings", description="Retrieve meetings for authenticated user.", operationId="getMeetings", tags={"meetings"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/meetings", summary="Retrieves meetings", description="Retrieve meetings for authenticated user.", operationId="getMeetings", tags={"meetings"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="comma delimited meeting ids", in="query", name="meetingIds", required=false, example="1,2",
* @OA\Schema(type="string")
* ),
Expand Down Expand Up @@ -98,7 +98,7 @@ public function index()
}

/**
* @OA\Get(path="/api/v1/meetings/{meetingId}", summary="Retrieves a meeting", description="Retrieve a meeting.", operationId="getMeeting", tags={"meetings"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/meetings/{meetingId}", summary="Retrieves a meeting", description="Retrieve a meeting.", operationId="getMeeting", tags={"meetings"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of meeting", in="path", name="meetingId", required=true, example="1",
* @OA\Schema(type="integer",format="int64")
* ),
Expand All @@ -118,7 +118,7 @@ public function show()
}

/**
* @OA\Post(path="/api/v1/meetings", summary="Creates a meeting", description="Creates a meeting.", operationId="createMeeting", tags={"meetings"}, security={{"oauth2":{}}},
* @OA\Post(path="/api/v1/meetings", summary="Creates a meeting", description="Creates a meeting.", operationId="createMeeting", tags={"meetings"}, security={{"bmltToken":{}}},
* @OA\RequestBody(required=true, description="Pass in meeting object",
* @OA\JsonContent(ref="#/components/schemas/CreateMeeting"),
* ),
Expand All @@ -144,7 +144,7 @@ public function store()
}

/**
* @OA\Put(path="/api/v1/meetings/{meetingId}", summary="Updates a meeting", description="Updates a meeting.", operationId="updateMeeting", tags={"meetings"}, security={{"oauth2":{}}},
* @OA\Put(path="/api/v1/meetings/{meetingId}", summary="Updates a meeting", description="Updates a meeting.", operationId="updateMeeting", tags={"meetings"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of meeting",in="path", name="meetingId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -171,7 +171,7 @@ public function update()
}

/**
* @OA\Patch(path="/api/v1/meetings/{meetingId}", summary="Patches a meeting", description="Patches a meeting by id", operationId="patchMeeting", tags={"meetings"}, security={{"oauth2":{}}},
* @OA\Patch(path="/api/v1/meetings/{meetingId}", summary="Patches a meeting", description="Patches a meeting by id", operationId="patchMeeting", tags={"meetings"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of meeting", in="path", name="meetingId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -198,7 +198,7 @@ public function partialUpdate()
}

/**
* @OA\Delete(path="/api/v1/meetings/{meetingId}", summary="Deletes a meeting", description="Deletes a meeting by id.", operationId="deleteMeeting", tags={"meetings"}, security={{"oauth2":{}}},
* @OA\Delete(path="/api/v1/meetings/{meetingId}", summary="Deletes a meeting", description="Deletes a meeting by id.", operationId="deleteMeeting", tags={"meetings"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of meeting", in="path", name="meetingId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand Down
12 changes: 6 additions & 6 deletions src/app/Http/Controllers/Admin/Swagger/ServiceBodyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ServiceBodyController extends Controller
{

/**
* @OA\Get(path="/api/v1/servicebodies", summary="Retrieves service bodies", description="Retrieve service bodies for authenticated user.", operationId="getServiceBodies", tags={"servicebodies"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/servicebodies", summary="Retrieves service bodies", description="Retrieve service bodies for authenticated user.", operationId="getServiceBodies", tags={"servicebodies"}, security={{"bmltToken":{}}},
* @OA\Response(response=200, description="Returns when user is authenticated.",
* @OA\JsonContent(ref="#/components/schemas/ServiceBodyCollection")
* ),
Expand All @@ -55,7 +55,7 @@ public function index()
}

/**
* @OA\Get(path="/api/v1/servicebodies/{serviceBodyId}", summary="Retrieves a service body", description="Retrieve a single service body by id.", operationId="getServiceBody", tags={"servicebodies"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/servicebodies/{serviceBodyId}", summary="Retrieves a service body", description="Retrieve a single service body by id.", operationId="getServiceBody", tags={"servicebodies"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of service body", in="path", name="serviceBodyId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -75,7 +75,7 @@ public function show()
}

/**
* @OA\Post(path="/api/v1/servicebodies", summary="Creates a service body", description="Creates a service body.", operationId="createServiceBody", tags={"servicebodies"}, security={{"oauth2":{}}},
* @OA\Post(path="/api/v1/servicebodies", summary="Creates a service body", description="Creates a service body.", operationId="createServiceBody", tags={"servicebodies"}, security={{"bmltToken":{}}},
* @OA\RequestBody(required=true, description="Pass in service body object",
* @OA\JsonContent(ref="#/components/schemas/CreateServiceBody"),
* ),
Expand All @@ -101,7 +101,7 @@ public function store()
}

/**
* @OA\Put(path="/api/v1/servicebodies/{serviceBodyId}", summary="Updates a Service Body", description="Updates a single service body.", operationId="updateServiceBody", tags={"servicebodies"}, security={{"oauth2":{}}},
* @OA\Put(path="/api/v1/servicebodies/{serviceBodyId}", summary="Updates a Service Body", description="Updates a single service body.", operationId="updateServiceBody", tags={"servicebodies"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of service body", in="path", name="serviceBodyId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand Down Expand Up @@ -129,7 +129,7 @@ public function update()
}

/**
* @OA\Patch(path="/api/v1/servicebodies/{serviceBodyId}", summary="Patches a service body", description="Patches a single service body by id.", operationId="patchServiceBody", tags={"servicebodies"}, security={{"oauth2":{}}},
* @OA\Patch(path="/api/v1/servicebodies/{serviceBodyId}", summary="Patches a service body", description="Patches a single service body by id.", operationId="patchServiceBody", tags={"servicebodies"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of service body", in="path", name="serviceBodyId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -155,7 +155,7 @@ public function partialUpdate()
{
}
/**
* @OA\Delete(path="/api/v1/servicebodies/{serviceBodyId}", summary="Deletes a service body", description="Deletes a service body by id.", operationId="deleteServiceBody", tags={"servicebodies"}, security={{"oauth2":{}}},
* @OA\Delete(path="/api/v1/servicebodies/{serviceBodyId}", summary="Deletes a service body", description="Deletes a service body by id.", operationId="deleteServiceBody", tags={"servicebodies"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of service body", in="path", name="serviceBodyId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand Down
4 changes: 2 additions & 2 deletions src/app/Http/Controllers/Admin/Swagger/TokenController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function token()
}

/**
* @OA\Post(path="/api/v1/auth/refresh", summary="Revokes and issues a new token", description="Refresh token.", operationId="authRefresh", tags={"auth"}, security={{"oauth2":{}}},
* @OA\Post(path="/api/v1/auth/refresh", summary="Revokes and issues a new token", description="Refresh token.", operationId="authRefresh", tags={"auth"}, security={{"bmltToken":{}}},
* @OA\Response(response=200, description="Returns when refresh is successful.",
* @OA\JsonContent(ref="#/components/schemas/Token")
* ),
Expand All @@ -50,7 +50,7 @@ public function refresh()
}

/**
* @OA\Post(path="/api/v1/auth/logout", summary="Revokes a token", description="Revoke token and logout.", operationId="authLogout", tags={"auth"}, security={{"oauth2":{}}},
* @OA\Post(path="/api/v1/auth/logout", summary="Revokes a token", description="Revoke token and logout.", operationId="authLogout", tags={"auth"}, security={{"bmltToken":{}}},
* @OA\Response(response=200, description="Returns when token was logged out."),
* @OA\Response(response=401, description="Returns when request is unauthenticated.",
* @OA\JsonContent(ref="#/components/schemas/ErrorUnauthenticated")
Expand Down
12 changes: 6 additions & 6 deletions src/app/Http/Controllers/Admin/Swagger/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class UserController extends Controller
{

/**
* @OA\Get(path="/api/v1/users", summary="Retrieves users", description="Retrieve users for authenticated user.", operationId="getUsers", tags={"users"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/users", summary="Retrieves users", description="Retrieve users for authenticated user.", operationId="getUsers", tags={"users"}, security={{"bmltToken":{}}},
* @OA\Response(response=200, description="Returns when user is authenticated.",
* @OA\JsonContent(ref="#/components/schemas/UserCollection")
* ),
Expand All @@ -52,7 +52,7 @@ public function index()
}

/**
* @OA\Get(path="/api/v1/users/{userId}", summary="Retrieves a single user", description="Retrieve single user.", operationId="getUser", tags={"users"}, security={{"oauth2":{}}},
* @OA\Get(path="/api/v1/users/{userId}", summary="Retrieves a single user", description="Retrieve single user.", operationId="getUser", tags={"users"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of user", in="path", name="userId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -72,7 +72,7 @@ public function show()
}

/**
* @OA\Post(path="/api/v1/users", summary="Creates a user", description="Creates a user.", operationId="createUser", tags={"users"}, security={{"oauth2":{}}},
* @OA\Post(path="/api/v1/users", summary="Creates a user", description="Creates a user.", operationId="createUser", tags={"users"}, security={{"bmltToken":{}}},
* @OA\RequestBody(required=true, description="Pass in user object",
* @OA\JsonContent(ref="#/components/schemas/CreateUser"),
* ),
Expand All @@ -98,7 +98,7 @@ public function store()
}

/**
* @OA\Put(path="/api/v1/users/{userId}", summary="Update single user", description="Updates a user.", operationId="updateUser", tags={"users"}, security={{"oauth2":{}}},
* @OA\Put(path="/api/v1/users/{userId}", summary="Update single user", description="Updates a user.", operationId="updateUser", tags={"users"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of user", in="path", name="userId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -125,7 +125,7 @@ public function update()
}

/**
* @OA\Patch(path="/api/v1/users/{userId}", summary="Patches a user", description="Patches a user by id.", operationId="partialUpdateUser", tags={"users"}, security={{"oauth2":{}}},
* @OA\Patch(path="/api/v1/users/{userId}", summary="Patches a user", description="Patches a user by id.", operationId="partialUpdateUser", tags={"users"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of user", in="path", name="userId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand All @@ -152,7 +152,7 @@ public function partialUpdate()
}

/**
* @OA\Delete(path="/api/v1/users/{userId}", summary="Deletes a user", description="Deletes a user by id", operationId="deleteUser", tags={"users"}, security={{"oauth2":{}}},
* @OA\Delete(path="/api/v1/users/{userId}", summary="Deletes a user", description="Deletes a user by id", operationId="deleteUser", tags={"users"}, security={{"bmltToken":{}}},
* @OA\Parameter(description="ID of user", in="path", name="userId", required=true, example="1",
* @OA\Schema(type="integer", format="int64")
* ),
Expand Down
Loading

0 comments on commit 6753377

Please sign in to comment.