V3Show is api for show
(w http.ResponseWriter, r *http.Request)
| 174 | |
| 175 | // V3Show is api for show |
| 176 | func (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 | |
| 186 | type createNotePayload struct { |
| 187 | BookUUID string `schema:"book_uuid" json:"book_uuid"` |
nothing calls this directly
no test coverage detected