Method
GET /users
Response
200
(ok) on success
[
{
"user_id": 1,
"first_name": "John",
"last_name": "Doe"
},
{
"user_id": 2,
"first_name": "Mary",
"last_name": "Poppins"
}
]
Method
POST /users
Arguments
"first_name":string
user's first name"last_name":string
user's last name
Response
201
(created) on success
Method
GET /order
Response
200
(ok) on success
[
{
"order_id": 1,
"order_name": "Amoxicillin 500mg",
"user_first_name": "Albert",
"user_last_name": "Einstein"
},
{
"order_id": 2,
"order_name": "Advil 250mg",
"first_name": "Albert",
"last_name": "Einstein"
}
]
Method
POST /order
Arguments
"order_name":string
ordered item's name"user_id":string
user's unique id
Response
201
(created) on success