{"id":15129895,"url":"https://github.com/koizumi7010/go-todo-api","last_synced_at":"2026-02-24T20:33:54.950Z","repository":{"id":244531681,"uuid":"815508084","full_name":"koizumi7010/go-todo-api","owner":"koizumi7010","description":"This is a REST API for ToDo application using Gin and Gorm.","archived":false,"fork":false,"pushed_at":"2024-06-15T11:27:01.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T17:14:07.852Z","etag":null,"topics":["docker","docker-compose","golang","mysql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koizumi7010.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-15T11:17:42.000Z","updated_at":"2024-06-15T11:29:45.000Z","dependencies_parsed_at":"2024-06-15T12:52:30.018Z","dependency_job_id":null,"html_url":"https://github.com/koizumi7010/go-todo-api","commit_stats":null,"previous_names":["koizumi7010/go-todo-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koizumi7010%2Fgo-todo-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koizumi7010%2Fgo-todo-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koizumi7010%2Fgo-todo-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koizumi7010%2Fgo-todo-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koizumi7010","download_url":"https://codeload.github.com/koizumi7010/go-todo-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386906,"owners_count":20930733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","golang","mysql"],"created_at":"2024-09-26T02:22:53.817Z","updated_at":"2026-02-24T20:33:49.907Z","avatar_url":"https://github.com/koizumi7010.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-todo-api\nThis is a REST API for ToDo application using Gin and Gorm.\n\n## Usage\n### Run Server\n```\n$ git clone git@github.com:koizumi7010/go-todo-api.git\n$ cd go-todo-api\n$ docker-compose up -d \n$ docker exec -d go-todo-api go run cmd/go-todo-api/main.go\n```\n\n### End points\n| Method  | Path | Description |\n| ------------- | ------------- | ------------- |\n| GET  | /todo  | Get all task list |\n| GET  | /todo/{id}  | Get a task |\n| POST  | /todo | Create a new task |\n| PUT  | /todo/{id}  | Update a task |\n| DELETE  | /todo/{id}  | Delete a task |\n\n### API call samples\n```\n# Get all task list\n$ curl -i -XGET localhost/todo\n\n# Get a task\n$ curl -i -XGET localhost/todo/1\n\n# Create a new task\n$ curl -i localhost/todo -H \"Content-Type: application/json\" -X POST -d '{\"task\": \"test1\"}' \n\n# Update a task\n$ curl -i localhost/todo/1 -H \"Content-Type: application/json\" -X PUT -d '{\"task\": \"test1\",\"status\": \"done\"}'\n\n# Delete a task\n$ curl -i localhost/todo/1 -X DELETE\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoizumi7010%2Fgo-todo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoizumi7010%2Fgo-todo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoizumi7010%2Fgo-todo-api/lists"}