Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bwhtdev/go-todo-api
A Todolist API (with authentication) in GO
https://github.com/bwhtdev/go-todo-api
fiber go golang gorm postgresql railway-app
Last synced: about 1 month ago
JSON representation
A Todolist API (with authentication) in GO
- Host: GitHub
- URL: https://github.com/bwhtdev/go-todo-api
- Owner: bwhtdev
- Created: 2023-08-26T21:49:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-31T22:10:21.000Z (over 1 year ago)
- Last Synced: 2024-10-30T01:03:58.204Z (about 2 months ago)
- Topics: fiber, go, golang, gorm, postgresql, railway-app
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-todo-api
Testing: (always include `https://` in URL)
- `curl -X POST **URL**/auth/signup -H "Content-Type: application/json" --data '{"Name": "..", "Email": "..@..", "Password": ".."}'`
- `curl -X POST **URL**/auth/login -H "Content-Type: application/json" --data '{"Email": "..@..", "Password": ".."}'`
- `curl -i **URL**/todo/list -H "Authorization: Bearer **TOKEN**"`
- `curl -i **URL**/todo/1 -H "Authorization: Bearer **TOKEN**"`
- `curl -X POST **URL**/todo/create -H "Authorization: Bearer **TOKEN**" -H "Content-Type: application/json" --data '{"Task": ".."}'`
- `curl -X PATCH **URL**/todo/1 -H "Authorization: Bearer **TOKEN**" -H "Content-Type: application/json" --data '{"Task": ".."}'`
- `curl -X PATCH **URL**/todo/1/check -H "Authorization: Bearer **TOKEN**" -H "Content-Type: application/json" --data '{"Completed": true}'`
- `curl -X DELETE **URL**/todo/1 -H "Authorization: Bearer **TOKEN**"`