Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 815 Bytes

README.md

File metadata and controls

50 lines (36 loc) · 815 Bytes

Headers

All requests to the API should include a custom interview-id header. The value can be any unique string (like your favorite tv show or travel location) that stays the same for the duration of the interview.

Return all glovers

GET: http://localhost:8080/glovers

response:

{
   "237128737": {
        "name": "Joe Bloggs",
        "id": 237128737
    },
   "230000000": {
        "name": "David Zuckerberg",
        "id": 230000000
    }
}

Add a glover

POST: http://localhost:8080/glovers

body:

{ "name": "GloverName" }

Note: you might get a 500 with short names, also you need the Content-Type: application/json header.

If ok, returns:

{ "status": “ok” }

Remove a glover

DELETE: http://localhost:8080/glovers/:id