Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(db bun.IDB) http.HandlerFunc
Handler lists the direct children of a folder, of the root without parent: GET /api/items?parent=&kind=&limit=&offset=. X-Total-Count counts them all, whatever the page. @Summary List the direct children of a folder, or of the root @Tags items @Produce json @Param parent query string false "folder uuid, the root when left out" @Param kind query string false "folder or note, both when left out" @Param limit query integer false "children in the page, all when left out or 0" @Param offset query integer false "children skipped before the page, folders first then by title" @Success 200 {array} domain.Item @Header 200 {integer} X-Total-Count "every child, not only the page" @Failure 400 {object} respond.Failure @Failure 500 {object} respond.Failure @Router /api/items [get]
Types ¶
This section is empty.