Skip to content

Glovo/crud-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published