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

Function GetTask

server/server.go:135–148  ·  view source on GitHub ↗

GetTask handles GET requsts to /task/{taskID}. There's no parameters and it returns a JSON encoded task. Examples: req: GET /task/1 res: 200 {"ID": 1, "Title": "Buy bread", "Done": true} req: GET /task/42 res: 404 task not found

(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 2

parseIDFunction · 0.85
FindMethod · 0.80

Tested by

no test coverage detected