apiDeleteBook deletes a book via the API
(t *testing.T, env testEnv, user database.User, uuid, message string)
| 187 | |
| 188 | // apiDeleteBook deletes a book via the API |
| 189 | func apiDeleteBook(t *testing.T, env testEnv, user database.User, uuid, message string) { |
| 190 | doHTTPReq(t, env, "DELETE", fmt.Sprintf("/v3/books/%s", uuid), "", message, user) |
| 191 | } |
| 192 | |
| 193 | // apiCreateNote creates a note via the API and returns its UUID |
| 194 | func apiCreateNote(t *testing.T, env testEnv, user database.User, bookUUID, body, message string) string { |