Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(db bun.IDB) http.HandlerFunc
Handler changes a part of a note's text, its title, a text or a section, through the path of a full edit: PATCH /api/notes/{id}/text. It answers the note as GET does and how many times the text was replaced. @Summary Rename a note, or replace a text or a section of it @Tags notes @Accept json @Produce json @Param id path string true "uuid" @Param body body editnotetext.Input true "body" @Success 200 {object} editnotetext.Result @Failure 400 {object} respond.Failure @Failure 404 {object} respond.Failure @Failure 409 {object} respond.Failure @Failure 413 {object} respond.Failure @Failure 500 {object} respond.Failure @Router /api/notes/{id}/text [patch]
Types ¶
This section is empty.