src.services.notes.notes module

This is a more complex illustration of a sample service.

src.services.notes.notes.note_repr(key)

Prepares the note response

Parameters:key (int) – The note key
Returns:The formatted note response
src.services.notes.notes.notes_detail(key)

Retrieve, update or delete note instances.

Parameters:key (int) – The note key
Returns:When PUTing a new note this will return the note object. When DELETEing a note this will return an empty body with a 204 header When GETing a note this will return the note object
src.services.notes.notes.notes_list()

Lists the notes

Returns:A list of note objects