Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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**"`