This project comprises of the back end of a motorcycle booking store you can view the front end of this app repo here https://github.com/Dagic-zewdu/final-capstone-frontend
1
stars
0
forks
source link
[2pt] Create a post api endpoint that saves the motorcyle #16
[ ] Create a post API endpoint that saves the motorcycle. post =>http://localhost:3000/api/v1/motorcycle.
it should receive JSON
{
"model": string, //required
"price":float, //required
"title": string, //required
"images":[string,string] //required at leat one image
"duration": integer, //required
"discount" :integer, //optional
"description": string, //required
"user": integer // user id that created motorcycle and it is required
}
[ ] Create a post API endpoint that saves the motorcycle. post =>
http://localhost:3000/api/v1/motorcycle
.it should receive JSON
[ ] This API should be authorized with a token