RepositĆ³rio criado para o desenvolvimento e estudo da trilha Ignite NodeJS da šRocketseat
- Javascript
- NodeJS
- GitHub
npm install
npm run dev
A API REST para o aplicativo de exemplo Ć© descrita abaixo.
GET /users/
curl --request GET \
--url http://localhost:3333/users \
--header 'Content-type: application/json'
Content-type: application/json
Date: Mon, 29 May 2023 10:49:03 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Content-Length: 2
200 Ok
[]
POST /users/
curl --request POST \
--url http://localhost:3333/users \
--header 'Content-Type: application/json' \
--data '{
"name": "Leandro Parice",
"email": "contato@leandroparice.com.br"
}'
Content-type: application/json
Date: Mon, 29 May 2023 10:50:14 GMT
Connection: keep-alive
Keep-Alive: timeout=5
Transfer-Encoding: chunked
201 Created
No body returned for response
PUT /users/:id
curl --request PUT \
--url http://localhost:3333/users/02729739-8b1a-4cb7-8365-2a52c1dfc024 \
--header 'Content-Type: application/json' \
--data '{
"name": "Leandro Parice alterado",
"email": "contato2@leandroparice.com.br"
}'
Content-type: application/json
Date: Mon, 29 May 2023 10:56:38 GMT
Connection: keep-alive
Keep-Alive: timeout=5
204 No Content
No body returned for response
DELETE /users/:id
curl --request DELETE \
--url http://localhost:3333/users/02729739-8b1a-4cb7-8365-2a52c1dfc024
Content-type: application/json
Date: Mon, 29 May 2023 10:59:40 GMT
Connection: keep-alive
Keep-Alive: timeout=5
204 No Content
No body returned for response