Skip to content
Sample application for the Todo-Backend project (http://www.todobackend.com) which implements TodoMVC (http://todomvc.com) backends.
Kotlin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
.travis.yml
Procfile
README.md
build.gradle
docker-compose.yaml
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

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.

You can’t perform that action at this time.