Skip to content

hexagonkt/todo_backend

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Todo

Todo backend example for Todo Backend using Hexagon. Built with Travis CI and hosted at Heroku here: https://todo-backend-hexagonkt.herokuapp.com/

The spec is:

GET /tasks/{id}

Response:

{
    "url": "/tasks/{id}",
    "title": string,
    "order": int?,
    "completed": boolean
}

GET /tasks

Response:

[
    {
        "url": "/tasks/{id}",
        "title": string,
        "order": int?,
        "completed": boolean
    },
    ...
}

POST /tasks

Request:

{
  "title": string,
  "order": int?
}

Response:

{
    "url": "/tasks/{id}",
    "title": string
    "order": int?,
    "completed": boolean
}

PATCH /tasks/{id} Request:

{
  "title": string?,
  "order": int?
  "completed": boolean?
}

Response:

{
    "url": "/tasks/{id}",
    "title": string
    "order": int?,
    "completed": boolean
}

DELETE /tasks/{id} Response: 200 OK

DELETE /tasks Response: 200 OK

Build

Import the gradle project to build the code.

Deploy

Set the environment variable SERVICE_serviceURL to whatever your host is to generate the correct url for tasks.

Set SERVICE_mongoDbUrl to the url for your MongoDb database.

About

Sample application for the Todo-Backend project (http://www.todobackend.com) which implements TodoMVC (http://todomvc.com) backends.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages