Skip to content

Instantly share code, notes, and snippets.

@diginc
Created December 22, 2015 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diginc/e21992634b641c7ae6fd to your computer and use it in GitHub Desktop.
Save diginc/e21992634b641c7ae6fd to your computer and use it in GitHub Desktop.
simple todo
Use git for all steps of the process.
Write a server that knows how handle a TODO list. Preferably test driven. Initially the server can use a very simple in-memory collection of items. If time permits, we can have it backed with a database living in another docker container.
Server:
GET /todos
PUT /todos {"title": "<TITLE>", "message": "<MESSAGE"}. Returns the location in the header
GET /todos/ID Returns single note.
POST /todos/ID {"id": "<ID>", "title": "<TITLE>", "message": "<MESSAGE"}. Updates a note
POST /search {"title": "<TITLE_SEARCH_STRING>", , "message": "<MESSAGE_SEARCH_STRING"}. Returns all the todos with a title or message that matches the search. Maybe the search string could be a regex.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment