Skip to content

Commit

Permalink
fix: move query to path in models swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
NishaSharma14 committed Dec 8, 2023
1 parent 526e92a commit c519798
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/DatasetController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public function all(Request $request)

/**
* @OA\Get(
* path="/api/v1/dataset/?id={id}",
* path="/api/v1/dataset/{id}",
* summary="Fetch nmrXiv public datasets based on identifier",
* description="Fetch details of nmrXiv public dataset based on identifier.",
* operationId="publicDataset",
* tags={"public"},
*
* @OA\Parameter(
* name="id",
* in="query",
* in="path",
* description="Public dataset identifier e.g. D12",
* required=true,
*
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public function all(Request $request)

/**
* @OA\Get(
* path="/api/v1/project/?id={id}",
* path="/api/v1/project/{id}",
* summary="Fetch nmrXiv public project based on identifier",
* description="Fetch details of nmrXiv public project based on identifier.",
* operationId="publicProject",
* tags={"public"},
*
* @OA\Parameter(
* name="id",
* in="query",
* in="path",
* description="Public project identifier e.g. P12",
* required=true,
*
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/StudyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public function all(Request $request)

/**
* @OA\Get(
* path="/api/v1/sample/?id={id}",
* path="/api/v1/sample/{id}",
* summary="Fetch nmrXiv public samples based on identifier",
* description="Fetch details of nmrXiv public sample based on identifier.",
* operationId="publicSample",
* tags={"public"},
*
* @OA\Parameter(
* name="id",
* in="query",
* in="path",
* description="Public sample identifier e.g. S12",
* required=true,
*
Expand Down
12 changes: 6 additions & 6 deletions storage/api-docs/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
}
}
},
"/api/v1/dataset/?id={id}": {
"/api/v1/dataset/{id}": {
"get": {
"tags": [
"public"
Expand All @@ -226,7 +226,7 @@
"parameters": [
{
"name": "id",
"in": "query",
"in": "path",
"description": "Public dataset identifier e.g. D12",
"required": true,
"schema": {
Expand Down Expand Up @@ -265,7 +265,7 @@
}
}
},
"/api/v1/project/?id={id}": {
"/api/v1/project/{id}": {
"get": {
"tags": [
"public"
Expand All @@ -276,7 +276,7 @@
"parameters": [
{
"name": "id",
"in": "query",
"in": "path",
"description": "Public project identifier e.g. P12",
"required": true,
"schema": {
Expand Down Expand Up @@ -511,7 +511,7 @@
}
}
},
"/api/v1/sample/?id={id}": {
"/api/v1/sample/{id}": {
"get": {
"tags": [
"public"
Expand All @@ -522,7 +522,7 @@
"parameters": [
{
"name": "id",
"in": "query",
"in": "path",
"description": "Public sample identifier e.g. S12",
"required": true,
"schema": {
Expand Down

0 comments on commit c519798

Please sign in to comment.