An open API service indexing awesome lists of open source software.

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

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: [email protected]
Password: secret

which has administrative rights.

Use one of the following accounts:

[email protected]
[email protected]
[email protected]

with

Password: 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