Skip to content

Commit

Permalink
Merge pull request #115 from AsliSema/swagger-bugs
Browse files Browse the repository at this point in the history
fix admin update order routes in swagger
  • Loading branch information
AsliSema authored Aug 9, 2023
2 parents 443e178 a63803b commit d9fead8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/routes/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 375,22 @@ router
* type: string
* required: true
* description: ID of the order
* requestBody:
* description: Updating value of isPaid & isDelivered. Cook can only access this API.
* required: true
* content:
* application/json:
* schema:
* type: object
* properties:
* isPaid:
* type: boolean
* description: ID of the dish to be added to the cart.
* default: true
* isDelivered:
* type: boolean
* description: Quantity of the dish to be added to the cart.
* default: true
* responses:
* 200:
* description: Successful operation
Expand Down

0 comments on commit d9fead8

Please sign in to comment.