https://github.com/koki-develop/litetodo
https://github.com/koki-develop/litetodo
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/koki-develop/litetodo
- Owner: koki-develop
- License: mit
- Created: 2024-02-03T23:31:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-19T13:02:06.000Z (almost 2 years ago)
- Last Synced: 2025-04-15T08:58:36.411Z (10 months ago)
- Language: Go
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Start
```console
$ docker compose up --build
```
# Usage
## Create a task
```console
$ curl http://localhost:8080/tasks \
-X POST \
-H 'Content-Type: application/json' \
--data '{ "title": "aaa" }'
```
## Get tasks
```console
$ curl http://localhost:8080/tasks
```
## Get a task
```console
$ curl http://localhost:8080/tasks/1
```
## Update a task
```console
$ curl http://localhost:8080/tasks/1 \
-X PATCH \
-H 'Content-Type: application/json' \
--data '{ "title": "updated", "completed": true }'
```
## Delete a task
```console
$ curl http://localhost:8080/tasks/1 \
-X DELETE
```
# LICENSE
[MIT](./LICENSE)