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: 4 months 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 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-09T15:13:53.000Z (about 6 years ago)
- Last Synced: 2025-01-17T02:21:55.691Z (5 months ago)
- Language: JavaScript
- Size: 930 KB
- Stars: 0
- Watchers: 3
- 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 applicationnpm run serve
Navigate to http://localhost:3000/api/ to see the available entity sets
#### Instructions
Use account:
Username: [email protected]
Password: secret
which has administrative rights.Use one of the following accounts:
[email protected]
[email protected]
[email protected]
withPassword: secret
to access user data.
Api server has basic authorization enabled.###### Get interactive user
curl --user [email protected]:secret \
http://localhost:3000/api/users/me
Response:{
"@odata.context": "/api/$metadata#Users/$entity",
"enabled": 1,
"name": "[email protected]",
"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 [email protected]:secret \
http://localhost:3000/api/orders