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
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/create CreateBook
/book/edit EditBook
/book/delete DeleteBook
/book/name GetBookByName
/book/autor GetBookByAutor
/book/genero GetBookByGenero
/card/create CreateCard
/card/edit EditCard
/card/delete DeleteCard
/card/user GetCardsByUserId
/card/validate ValidatedCard