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

Method V3Delete

pkg/server/controllers/notes.go:285–296  ·  view source on GitHub ↗

V3Delete deletes note

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

Source from the content-addressed store, hash-verified

283
284// V3Delete deletes note
285func (n *Notes) V3Delete(w http.ResponseWriter, r *http.Request) {
286 note, err := n.del(r)
287 if err != nil {
288 handleJSONError(w, err, "deleting note")
289 return
290 }
291
292 respondJSON(w, http.StatusOK, DeleteNoteResp{
293 Status: http.StatusNoContent,
294 Result: presenters.PresentNote(note),
295 })
296}
297
298type updateNotePayload struct {
299 BookUUID *string `schema:"book_uuid" json:"book_uuid"`

Callers

nothing calls this directly

Calls 4

delMethod · 0.95
PresentNoteFunction · 0.92
handleJSONErrorFunction · 0.85
respondJSONFunction · 0.85

Tested by

no test coverage detected