A RESTful todo list API written in Go on top of the Revel web framework.
Start the app with revel run
. Unless changed in app.conf, the app will start on port 9000 by default.
The following endpoints are available. Use a tool like Postman to exercise them.
GET /up
returns a static HTML page to show that the app is up and running.GET /todos
gets all of the todo list items.GET /todos/<uuid>
gets a specific todo item by its ID.POST /todos
creates a todo item. At minimum, theTitle
must be supplied in the body of the request.PATCH /todos/<uuid>
edits the specified todo item.DEL /todos/<uuid>
removes a todo list item by ID.
Run revel test github.com/natejenson/go-api
to run the unit tests.