MCPcopy Index your code
hub / github.com/dnote/dnote / V3Show

Method V3Show

pkg/server/controllers/notes.go:176–184  ·  view source on GitHub ↗

V3Show is api for show

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

Source from the content-addressed store, hash-verified

174
175// V3Show is api for show
176func (n *Notes) V3Show(w http.ResponseWriter, r *http.Request) {
177 note, err := n.getNote(r)
178 if err != nil {
179 handleJSONError(w, err, "getting note")
180 return
181 }
182
183 respondJSON(w, http.StatusOK, presenters.PresentNote(note))
184}
185
186type createNotePayload struct {
187 BookUUID string `schema:"book_uuid" json:"book_uuid"`

Callers

nothing calls this directly

Calls 4

getNoteMethod · 0.95
PresentNoteFunction · 0.92
handleJSONErrorFunction · 0.85
respondJSONFunction · 0.85

Tested by

no test coverage detected