Aircnc-api is a RocketSeat’s back-end project nineth OmniStack week in 2019. It is being used as a study project to improve my skils.
- Create user;
- Create spot;
- Create bookings;
- Show spots by technology;
- Show spots by user (when is company);
Method | Action | Header | Body | Query | Path |
---|---|---|---|---|---|
POST | login | [ ] | B1 | - | /sessions |
POST | create-spot | [ "user_id" ] | B2 | - | /spots |
POST | create-booking | [ "user_id" ] | B3 | - | /spots/:id/bookings |
GET | get-spots-user | [ "user_id" ] | - | - | /dashboard |
GET | get-spots-techs | [ ] | - | Q1 | /spots |
Request body for
login
{
"email": "[email protected]",
}
Request body for
create-token
(this request is a multipart)
{
"thumbnail": file,
"price": "string",
"techs": "string",
"company": "string"
}
Request body for
create-booking
{
"date": "string"
}
Request query for
get-spots-techs
{
"tech": "string"
}