MCPcopy Create free account
hub / github.com/campoy/todo / UpdateTask

Function UpdateTask

server/server.go:160–176  ·  view source on GitHub ↗

UpdateTask handles PUT requests to /task/{taskID}. The request body must contain a JSON encoded task. Example: req: PUT /task/1 {"ID": 1, "Title": "Learn Go", "Done": true} res: 200 req: PUT /task/2 {"ID": 2, "Title": "Learn Go", "Done": true} res: 400 inconsistent task IDs

(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

parseIDFunction · 0.85
FindMethod · 0.80
SaveMethod · 0.80

Tested by

no test coverage detected