Um Api feita para aprender e praticar diversos conceitos
https://www.youtube.com/playlist?list=PLDqnSpzNKDvlmRnr_K9PoQBqUSkVU42J1
🏠 Homepage Veja outros projetos
# copile and up
$ docker-compose up --build
# up
$ docker-compose up
#down
$ docker-compose down
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# test verbose
$ npm run test:verb
Exemplo de como montar as query
# body
query{
users{
id
name
email
}
}
#body
query{
userByEmail(email:"[email protected]"){
id
name
email
}
}
#header
{"Authorization":"Bearer ...." }
#body
query {
user(id: "1") {
name
email
}
}
# body
mutation {
createUser(
data: { name: "jose", email: "[email protected]", password: "123456" }
) {
id
name
email
}
}
# body
mutation {
login(data: { email: "[email protected]", password: "123456" }){
user{
id
name
email
}
token
}
}
# body
mutation{
updateUser(id:"1", data:{ name: "José Oliveira", email:"[email protected]"}){
id
name
email
}
}
# body
mutation{
deleteUser(id:"2")
}
Contributions, issues and feature requests are welcome!
- ⭐️ Star the project
- 🐛 Find and report issues
- 📥 Submit PRs to help solve issues or add features
Feel free to check issues page. You can also take a look at the contributing guide.
Amauri Oliveira
- Email: [email protected]
- GitHub: @AmauriOliveira
- LinkedIn: @amauri-oliveira-058066192
Copyright © 2020 Amauri Oliveira This project is MIT licensed.