Skip to content

Eli15x/SagwaBooks-Back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SagwaBooks - BACKEND

a project to a publishing company. to sell books.

made with go lang and mongoDB usign monitoring with bugsnag.

Available at :1323

to run, download project and at terminal digit: go run main.go

ROUTES

User

POST /login    ValidateUser
entrada:
{
  "email": "email@email.com",
  "password":"senha"
} 

return: userId "userId"
POST /cadastro CreateUser
entrada:
{
  "name": "name",
  "email":"email@email.com",
  "password": "password",
  "telefone": "telefone",
} 

return: ""
POST /user/edit EditUser
entrada:
{
  "userId": "number",
  "name": "name",
  "email":"email@email.com",
  "password": "password",
  "telefone": "telefone",
} 

return: ""
POST /user/delete DeleteUser
entrada:
{
  "userId": "number",
} 

return: ""
POST /getInformation GetInformationByUserId
entrada:
{
  "userId": "number",
} 

return:    
{
  "userId": "number",
  "name": "name",
  "email":"email@email.com",
  "password": "password",
  "telefone": "telefone",
}

Book

/book/create CreateBook
/book/edit EditBook
/book/delete DeleteBook
/book/name GetBookByName
/book/autor GetBookByAutor
/book/genero GetBookByGenero

Card

/card/create CreateCard
/card/edit EditCard
/card/delete DeleteCard
/card/user GetCardsByUserId
/card/validate ValidatedCard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages