Skip to content
Snippets Groups Projects
Commit 30bbe153 authored by Frederik Simonsen's avatar Frederik Simonsen
Browse files

update to README

parent 2006301d
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,49 @@ Body example:
“order_number”:”2”
}
```
### Customer
| Customer endpoint | Methods | URI | Description |
| :--- | :--- | :--- | :--- |
| get_production_plan | GET | http://localhost:5000/get_production_plan | Retrieve a four week plan summary with \<date> filter |
| delete_order | POST | http://localhost:5000/delete_order | Delete an order with a given \<order_nr> |
| new_order | POST | http://localhost:5000/new_order | Create a new order with given \<customer_id>, \<product_no> and \<quantity> |
| get_order_since | GET | http://localhost:5000/get_order_since | Retrieve orders made since a given \<date> |
| get_order | GET | http://localhost:5000/get_order | Retrieve an order with a given \<order_nr> |
|
* get_production_plan body example
```
{
"date": "2020-01-01"
}
```
* delete_order body example
```
{
"order_number": 1
}
```
* new_order body example
```
{
"customer_id": 1,
"product_no": 2,
"quantity": 3
}
```
* get_order_since body example
```
{
"date": "2022-01-01"
}
```
* get_order body example
```
{
"order_number": 7
}
```
## Missing parts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment