Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jeffscottbrown/93546668f580584c0b4edd65bb458f63 to your computer and use it in GitHub Desktop.

Select an option

Save jeffscottbrown/93546668f580584c0b4edd65bb458f63 to your computer and use it in GitHub Desktop.
~ $ http :8080/genres/list
HTTP/1.1 200 OK
Content-Type: application/json
connection: keep-alive
content-length: 2
date: Sat, 31 Jul 2021 12:27:43 GMT
[]
~ $ http POST :8080/genres name=Jeff
HTTP/1.1 201 Created
Content-Type: application/json
connection: keep-alive
content-length: 22
date: Sat, 31 Jul 2021 12:28:26 GMT
location: /genres/1
{
"id": 1,
"name": "Jeff"
}
~ $ http :8080/genres/list
HTTP/1.1 200 OK
Content-Type: application/json
connection: keep-alive
content-length: 24
date: Sat, 31 Jul 2021 12:28:28 GMT
[
{
"id": 1,
"name": "Jeff"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment