Skip to content

igor-nm/aircnc-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aircnc - API

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.

Features:

  • Create user;
  • Create spot;
  • Create bookings;
  • Show spots by technology;
  • Show spots by user (when is company);

Routes:

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
B1

Request body for login

{
    "email": "[email protected]",
}
B2

Request body for create-token (this request is a multipart)

{
    "thumbnail": file,
    "price": "string",
    "techs": "string",
    "company": "string"
}
B3

Request body for create-booking

{
    "date": "string"
}
Q1

Request query for get-spots-techs

{
    "tech": "string"
}

About

Study Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published