Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mad-coders/angular-demo-task-api
Angular Demo Task Api
https://github.com/mad-coders/angular-demo-task-api
Last synced: 19 days ago
JSON representation
Angular Demo Task Api
- Host: GitHub
- URL: https://github.com/mad-coders/angular-demo-task-api
- Owner: mad-coders
- Created: 2019-05-14T13:05:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-28T18:21:54.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T22:32:52.030Z (almost 2 years ago)
- Language: JavaScript
- Size: 729 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test task
## Create CRUD for given API endpoint
Endpoint: https://pyjqrozqt9.execute-api.eu-central-1.amazonaws.com/prod/orders
Supported views and actions:
- list all orders (table/grid)
- edit order
- create order (with order items)
- delete ordert
- add breadcrumbs## Use following
- only orders which has status different than "closed" can be deleted or updated
- remember about correct error handling
- keep performance aspects in mind## API doc:
| METHOD| PATH | Description |
|----------|:-------------:|------:|
| GET | /prod/orders | displays order list |
| POST | /prod/orders | order create order. Requires "order payload" |
| GET | /prod/orders/{id} | order details |
| DELETE | /prod/orders/{id} | delete order |
| PUT /prod/orders/{id} | updates order. Requires "order payload" |**Order payload:**
```
{
"status": "open",
"client": "Strosin LLC XXXXX",
"total": 922,
"items": [
{
"itemName": "Handmade Metal Table",
"color": "mint green",
"price": 922
}
]
}
```