Skip to content

Commit

Permalink
Update swagger v2 json
Browse files Browse the repository at this point in the history
  • Loading branch information
marfavi committed Jan 20, 2024
1 parent 449a769 commit 7ed6d62
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions openapi/coffeecard_api_v2.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,61 @@
]
}
},
"/api/v2/products/{id}": {
"get": {
"tags": [
"Products"
],
"summary": "Returns a product with the specified id",
"operationId": "Products_GetProduct",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"description": "The id of the product to be returned",
"schema": {
"type": "integer",
"format": "int32"
},
"x-position": 1
}
],
"responses": {
"200": {
"description": "Successful request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProductResponse"
}
}
}
},
"401": {
"description": "Invalid credentials"
},
"404": {
"description": "The product with the specified id could not be found",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
},
"security": [
{
"jwt": []
},
{
"apikey": []
}
]
}
},
"/api/v2/products/all": {
"get": {
"tags": [
Expand Down

0 comments on commit 7ed6d62

Please sign in to comment.