its an APP used for ordering fast food and with an admin control.
https://akpante3.github.io/fast-food-fast/ https://api-fast-food.herokuapp.com/api/v1/
.API endpoints for food orders .UI template
on[console] .cd server .nmp install .nmp start
npm test
- Eslint
- Airbnb
- [
GET
api/v1/orders] - [
GET
api/v1/orders/:id] - [
POST
api/v1/orders] - [
PUT
api/v1/orders/:id] - [
POST
api/v1/auth/login] - [
POST
api/v1/auth/signup] - [
GET
api/v1/orders/auth/orders/:id/orders] - [
POST
api/v1/menu] - [
GET
api/v1/menu]
HTTP VERB | API ENDPOINT | FUNCTION | INPUT | OUTPUT |
---|---|---|---|---|
POST | api/v1/auth/signup | Signup user |
{ name: "string", email: "string", phone: "string", address: "string", password: "string" } |
{ message: "string", token: "string" } |
POST | api/v1/auth/login | Login user |
{ email: "string", password: "string" } |
{ message: "string", token: "string" } |
POST | api/v1/menu | Create new menu |
{ menu: "string", description: "string", category: "string", quantity: "string", price: "string" } "Authorization": "token" |
{ message: "string" menu: {object} } |
GET | api/v1/menu | Get All Available Menu | "Authorization": "token" or undefined | { message: "string" allMenu: {object} } |
POST | api/v1/orders | Place order | { orderItems: [ { menuId: "Number", quantity: "Number" } ], location: "string" or undefined, } "Authorization": "token" |
{ message: "string", newOrder: {object} } |
GET | api/v1/orders/:userId/orders | Get user order history | userId: "Number" "Authorization": "token" |
{ message: "string" orderHistory: {object} } |
GET | api/v1/orders | Get all orders | "Authorization": "token" | { message: "string" allOrders: {object} } |
GET | api/v1/orders/:orderId | Get specific order | "Authorization": "token" | { message: "string" foundOrder: {object} } |
. HTML, . CSS, . NodeJs,
fast-food-fast currently returns data in JSON format.
N/A
N/A