Skip to content
Snippets Groups Projects
Commit 44c11ad0 authored by Sindre Hiis-Hauge's avatar Sindre Hiis-Hauge
Browse files

Updated readme.md with customerRep endpoints

parent ac1421b1
No related branches found
No related tags found
Loading
......@@ -4,7 +4,74 @@ This is the project repo of Group 10's project in IDATG2204, Data Modeling and D
## API request guide
**CustomerRep endpoint:**
```
get_orders_new
Fetches all orders that are new:
URL: http://127.0.0.1:5000/get orders_new
```
```
get_orders_available
Fetches all order that are available
URL: http://127.0.0.1:5000/get_orders_available
```
```
get_orders_available_filter
Fetches orders with “state = Ski available”, the input in the body is for the column to filter with,
and the value to search for, like “XXL Bergen”. It does not support parts of a value and needs the full value.
URL: http://127.0.0.1:5000/get_orders_available_filter
Body:
{
“Attribute”: “column”,
“value”: “value”
}
Body example:
{
“Attribute”: “franchise_store_name”,
“value”: “XXL Bergen”
}
```
```
put_orders_open
Updates a given order, by number, from “new” to “open”
URL: http://127.0.0.1:5000/put_orders_open
Body:
{
“order_number”:”number”
}
Body example:
{
“order_number”:”2”
}
```
```
put_orders_available
Updates a given order, by number, from “open” to “Skis available”
URL: http://127.0.0.1:5000/put_orders_available
Body:
{
“order_number”:”number”
}
Body example:
{
“order_number”:”2”
}
```
## Missing parts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment