Public
Documentation Settings

Hackathon

GETGet trackers

https://cs1998trackers.herokuapp.com/api/trackers/

Get all trackers in Tracker App.

GETGet a tracker

https://cs1998trackers.herokuapp.com/api/trackers/2/

Retrieve a specific tracker. Requires "tracker_id" in params.

POSTCreate tracker

https://cs1998trackers.herokuapp.com/api/trackers/

Creates a new tracker. Requires "name", "templates" a list of {"templateName", "templateType"}

Bodyraw (json)
json
{
    "name": "Books reading",
    "templates": []
}

GETGet a record

https://cs1998trackers.herokuapp.com/api/record/1/

Retrieves a record from a tracker. Requires "record_id" in params

POSTAdd record to tracker

https://cs1998trackers.herokuapp.com/api/trackers/add/

Adds a record to a tracker. Requires "tracker_id", "date", "details" a list of details [{"detailName", "detailType", detailValue"}] in body. (Date format: mm.dd.yyyy)

Bodyraw (json)
json
{
    "tracker_id": 2,
    "date": "12.18.2020",
    "details": [
        {
            "detailName": "Type of Workout",
            "detailType": "text",
            "detailValue": "Yoga"
        },
        {
            "detailName": "Type of Workout",
            "detailType": "text",
            "detailValue": "Pilates"
        }

    ]
}
Loading