Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
IDATG2204-Group10-Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frederik Simonsen
IDATG2204-Group10-Project
Commits
44c11ad0
Commit
44c11ad0
authored
3 years ago
by
Sindre Hiis-Hauge
Browse files
Options
Downloads
Patches
Plain Diff
Updated readme.md with customerRep endpoints
parent
ac1421b1
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+67
-0
67 additions, 0 deletions
README.md
with
67 additions
and
0 deletions
README.md
+
67
−
0
View file @
44c11ad0
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment