Before using the TODO-LIST-API, you need to have the following installed on your computer:
- Node.js
- npm
-
Clone the repository:
git clone https://github.com/adityaoryza/TODO-LIST-API.git
-
Install the dependencies:
cd TODO-LIST-API npm install -
Start the server:
npm start
https://api.adityaoryza.my.id/
GET /activity-groups
Retrieve all activity groups.
GET /activity-groups/:activity_id
Retrieve a specific activity group.
Parameters:
activity_id(required): The ID of the activity group to retrieve.
POST /activity-groups
Create a new activity group.
Request Body (JSON):
{
"title": "test",
"email": "[email protected]"
}PATCH /activity-groups/:activity_id
Update an existing activity group.
Parameters:
activity_id(required): The ID of the activity group to update.
Request Body (JSON):
{
"title": "testing"
}DELETE /activity-groups/:activity_id
Delete an existing activity group.
Parameters:
activity_id(required): The ID of the activity group to delete.
GET /todo-items?activity_group_id=:activity_group_id
Retrieve all todo items for a specific activity group.
Parameters:
activity_group_id(required): The ID of the activity group for which to retrieve todo items.
GET /todo-items/:todo_id
Retrieve a specific todo item.
Parameters:
todo_id(required): The ID of the todo item to retrieve.
POST /todo-items
Create a new todo item.
Request Body (JSON):
{
"title": "ok",
"activity_group_id": 3,
"is_active": true
}PATCH /todo-items/:todo_id
Update an existing todo item.
Parameters:
todo_id(required): The ID of the todo item to update.
Request Body (JSON):
{
"title": "testing",
"priority": "very-high",
"is_active": true,
"status": "ok"
}DELETE /todo-items/:todo_id
Delete an existing todo item.
Parameters:
todo_id(required): The ID of the todo item to delete.
Please use the provided API endpoints with the base URL https://api.adityaoryza.my.id/ to interact with the Todo List API. If you have any more questions or need further assistance, feel free to ask!
