A simple REST API for studies made in Golang simulating a control of tasks to do.
- 📚 gorilla/mux
- 📚 joho/godotenv
- 📚 lib/pq
Task {
UID : uint32
Description : string
UserID : string
CreatedAt : string
Closed : boolean
}
- (GET) tasks
- Headers:
- UserId
- Headers:
- (POST) tasks
-
Headers:
- UserId
-
Body:
- description: string
-
- (DELETE) tasks/:id
-
Headers:
- UserId
-
Params:
- id
-
- (PATCH) tasks/:id
-
Headers:
- UserId
-
Params:
- id
-
Body:
- closed: boolean
-