This API provides endpoints to manage goals and goal completions, allowing users to create, delete, and retrieve information about their goals.
/completions
{
"goalId": "string"
}
{
"createdAt": "string",
"goalId": "string",
"id": "string",
"updatedAt": "string"
}
{
"error": "string"
}
{
"error": "string"
}
{
"error": "string"
}
{
"error": "string"
}
/completions
{
"completionId": "string",
"goalId": "string"
}
{
"message": "string"
}
{
"error": "string"
}
{
"error": "string"
}
{
"error": "string"
}
/goals
{
"desiredWeeklyFrequency": "integer",
"title": "string"
}
{
"desiredWeeklyFrequency": "integer",
"title": "string"
}
{
"error": "string"
}
{
"error": "string"
}
/pending-goals
[
{
"completionCount": "integer",
"createdAt": "string",
"desiredWeeklyFrequency": "integer",
"id": "string",
"title": "string"
}
]
{
"error": "string"
}
{
"error": "string"
}
/summary
{
"completed": "integer",
"goalsPerDay": {
"day": [
{
"completedAt": "string",
"goalId": "string",
"id": "string",
"title": "string"
}
]
},
"total": "integer"
}
{
"error": "string"
}
{
"error": "string"
}
All error responses will follow the format:
{
"error": "string"
}