Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 442 Bytes

File metadata and controls

33 lines (20 loc) · 442 Bytes

@hostname = http://localhost @port = 3000 @host = {{hostname}}:{{port}} @contentType = application/json

GET {{host}}/users

### POST {{host}}/users HTTP/1.1 Content-Type: {{contentType}}

{"FirstName": "Ford", "LastName": "Prefect"}

###

GET {{host}}/users/1

###

#500 Error

GET {{host}}/users/99

###

PUT {{host}}/users/1 Content-Type: {{contentType}}

{"ID": 1, "FirstName": "Arthur", "LastName": "Dent"}

### DELETE {{host}}/users/4