https://github.com/themost-framework/oms-api-demo
Order Management Demo Api Server with MOST Web Framework Codename Bluseshift
https://github.com/themost-framework/oms-api-demo
Last synced: 23 days ago
JSON representation
Order Management Demo Api Server with MOST Web Framework Codename Bluseshift
- Host: GitHub
- URL: https://github.com/themost-framework/oms-api-demo
- Owner: themost-framework
- License: gpl-3.0
- Created: 2019-04-01T18:04:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-09T15:13:53.000Z (about 7 years ago)
- Last Synced: 2025-04-17T19:53:36.428Z (about 1 year ago)
- Language: JavaScript
- Size: 930 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# oms-api-demo
Order Management Demo Api Server with [MOST Web Framework Codename Blueshift](https://github.com/themost-framework/themost)
#### Clone repository
git clone https://github.com/themost-framework/oms-api-demo.git
#### Install dependencies
npm i
#### Start application
npm run serve
Navigate to http://localhost:3000/api/ to see the available entity sets
#### Instructions
Use account:
Username: alexis.rees@example.com
Password: secret
which has administrative rights.
Use one of the following accounts:
lily.stewart@example.com
james.may@example.com
luis.nash@example.com
with
Password: secret
to access user data.
Api server has basic authorization enabled.
###### Get interactive user
curl --user lily.stewart@example.com:secret \
http://localhost:3000/api/users/me
Response:
{
"@odata.context": "/api/$metadata#Users/$entity",
"enabled": 1,
"name": "lily.stewart@example.com",
"description": "Lily Stewart",
"id": 701,
"dateCreated": "2019-04-01 17:05:38.037+03:00",
"dateModified": "2019-04-01 17:05:38.051+03:00",
"createdBy": 0,
"modifiedBy": 0,
"groups": [
{
"name": "Users",
"description": "Site Users",
"alternateName": "users",
"id": 3,
"dateCreated": "2019-04-01 15:03:02.731+03:00",
"dateModified": "2019-04-01 15:03:02.732+03:00",
"createdBy": 0,
"modifiedBy": 0
}
]
}
###### Get orders
curl --user lily.stewart@example.com:secret \
http://localhost:3000/api/orders