V3Delete deletes note
(w http.ResponseWriter, r *http.Request)
| 283 | |
| 284 | // V3Delete deletes note |
| 285 | func (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 | |
| 298 | type updateNotePayload struct { |
| 299 | BookUUID *string `schema:"book_uuid" json:"book_uuid"` |
nothing calls this directly
no test coverage detected