fixed path to get all tasks (echo bug)
This commit is contained in:
parent
fc17232819
commit
8e5ff72c4a
2 changed files with 5 additions and 5 deletions
|
@ -107,13 +107,13 @@ Authorization: Bearer {{auth_token}}
|
|||
###
|
||||
|
||||
# Get all pending tasks
|
||||
GET http://localhost:8080/api/v1/tasks
|
||||
GET http://localhost:8080/api/v1/tasks/all
|
||||
Authorization: Bearer {{auth_token}}
|
||||
|
||||
###
|
||||
|
||||
# Get all pending tasks with priorities
|
||||
GET http://localhost:8080/api/v1/tasks/desc
|
||||
GET http://localhost:8080/api/v1/tasks/all/desc
|
||||
Authorization: Bearer {{auth_token}}
|
||||
|
||||
###
|
||||
|
@ -125,7 +125,7 @@ GET http://localhost:8080/api/v1/tasks/caldav
|
|||
###
|
||||
|
||||
# Update a task
|
||||
POST http://localhost:8080/api/v1/tasks/30
|
||||
POST http://localhost:8080/api/v1/tasks/32
|
||||
Authorization: Bearer {{auth_token}}
|
||||
Content-Type: application/json
|
||||
|
||||
|
|
|
@ -162,8 +162,8 @@ func RegisterRoutes(e *echo.Echo) {
|
|||
},
|
||||
}
|
||||
a.PUT("/lists/:list", taskHandler.CreateWeb)
|
||||
a.GET("/tasks", taskHandler.ReadAllWeb)
|
||||
a.GET("/tasks/:sort", taskHandler.ReadAllWeb)
|
||||
a.GET("/tasks/all", taskHandler.ReadAllWeb)
|
||||
a.GET("/tasks/all/:sort", taskHandler.ReadAllWeb)
|
||||
a.DELETE("/tasks/:listtask", taskHandler.DeleteWeb)
|
||||
a.POST("/tasks/:listtask", taskHandler.UpdateWeb)
|
||||
|
||||
|
|
Loading…
Reference in a new issue