MealsOrderingApplication
  1. Order
MealsOrderingApplication
  • Category
    • GetAll
      GET
    • Add
      POST
    • GetById
      GET
    • Update
      PUT
    • Delete
      DELETE
  • Meal
    • GetAll
      GET
    • Add
      POST
    • GetById
      GET
    • Update
      PUT
    • Delete
      DELETE
  • Drink
    • GetAll
      GET
    • Add
      POST
    • GetById
      GET
    • Update
      PUT
    • Delete
      DELETE
  • Auth
    • Register
      POST
    • Login
      POST
  • Customer
    • GetAll
      GET
    • Add
      POST
    • GetById
      GET
    • Update
      PUT
    • Delete
      DELETE
  • Admin
    • GetAll
    • Add
    • GetById
    • Update
    • Delete
  • Driver
    • GetAll
    • Add
    • GetById
    • Update
    • Delete
  • Order
    • GetAll
      GET
    • Add
      POST
    • GetById
      GET
    • Update
      PUT
    • Delete
      DELETE
  • Review
    • GetAll
    • Add
    • GetById
    • Update
    • Delete
  1. Order

Add

POST
/api/Orders/

Request

Body Params application/json
object {0}
Example
{
    // "CustomerId": "0078987f-157f-4d1f-9c40-34812a9f2dbc",
    // "Description": "Description of order 9...",
    // "ProductsId": [
    //     1,
    //     2,
    //     3
    // ],
    // "Quantities": [
    //     3,
    //     2,
    //     1
    // ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:5051/api/Orders/' \
--header 'Content-Type: application/json' \
--data-raw '{
    // "CustomerId": "0078987f-157f-4d1f-9c40-34812a9f2dbc",
    // "Description": "Description of order 9...",
    // "ProductsId": [
    //     1,
    //     2,
    //     3
    // ],
    // "Quantities": [
    //     3,
    //     2,
    //     1
    // ]
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-04-27 19:29:51
Previous
GetAll
Next
GetById
Built with