| Nodejs | Expressjs | Mongodb ATLAS | Mongoose | Swagger UI | Nodemon | Jsonwebtokens
Get Orders
It will return all orders
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string |
Code | Description |
---|---|
200 |
/Orders
Create new order
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string | |
Content-Type | header | Yes | string | |
Body | body | Yes | valid json |
Name | Type | Description | Required |
---|---|---|---|
productId | string | Yes | |
quantity | string | Yes |
Code | Description |
---|---|
200 |
/Products
return list of all products
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string |
Code | Description |
---|---|
200 |
/Products
Create new product
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string | |
Content-Type | header | Yes | string | |
name | formData | Yes | string | |
price | formData | Yes | double | |
productImage | formData | Yes | string |
Code | Description |
---|---|
200 |
/Orders
delete a order using order ID
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string | |
Content-Type | header | Yes | string |
Code | Description |
---|---|
200 |
/Products
delete a product using Product ID
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string |
Code | Description |
---|---|
200 |
/Orders
Get single order using Order ID
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string |
Code | Description |
---|---|
200 |
/Products
Patch existing product using Product ID
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string | |
Content-Type | header | Yes | string | |
Body | body | Yes | json array of objects |
Name | Type | Description | Required |
---|---|---|---|
propName | string | Yes | |
value | string | Yes |
Code | Description |
---|---|
200 |
/Signup
New user signup
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string | |
Content-Type | header | Yes | string | |
Body | body | Yes | valid json object |
Name | Type | Description | Required |
---|---|---|---|
string | Yes | ||
password | string | Yes |
Code | Description |
---|---|
200 |
/Login
login user using email and password
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string | |
Content-Type | header | Yes | string | |
Body | body | Yes | valid json object |
Name | Type | Description | Required |
---|---|---|---|
string | Yes | ||
password | string | Yes |
Code | Description |
---|---|
200 |
/Login
delete user using User ID
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Authorization | header | No | string | |
Content-Type | header | Yes | string |
Code | Description |
---|---|
200 |
Name | Type | Description | Required |
---|---|---|---|
productId | string | Yes | |
quantity | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
propName | string | Yes | |
value | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
string | Yes | ||
password | string | Yes |
Name | Type | Description | Required |
---|---|---|---|
string | Yes | ||
password | string | Yes |