Browse Source

docs(gatecrashers): change example, now content-type is application/json

DEV-4017-prototypes-exercise-1-animals
Michele Sessa 2 years ago committed by Michele
parent
commit
73d7b44898
  1. 4
      subjects/gatecrashers/README.md

4
subjects/gatecrashers/README.md

@ -25,7 +25,7 @@ Unauthorized attempt:
```shell
curl -i -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "alcohol", "food": "bats"}'
HTTP/1.1 401 Unauthorized
Content-Type: text/html
Content-Type: application/json
Date: [date]
Connection: keep-alive
Keep-Alive: timeout=5
@ -39,7 +39,7 @@ Authorized attempt:
```shell
curl -i -u Rahima_Young:abracadabra -X POST localhost:5000/Ricky_Banni -H "Content-Type: application/json" -d '{"answer": "yes", "drink": "alcohol", "food": "bats"}'
HTTP/1.1 200 OK
Content-Type: text/html
Content-Type: application/json
Date: [date]
Connection: keep-alive
Keep-Alive: timeout=5

Loading…
Cancel
Save