export

package
v0.0.0-...-4d14c86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(db bun.IDB, store silo.Store) http.HandlerFunc

Handler gives every live note as a zip of markdown files, one directory per folder, the images in _files: GET /api/export, or only some items with what they hold: GET /api/export?id=<uuid>&id=<uuid>, or what a folder holds without the folder itself: GET /api/export?parent=<uuid>. files=false leaves the images empty, only named. @Summary Export the notes as markdown files @Tags transfer @Produce application/zip @Param id query []string false "items to export with what they hold, every note when left out" collectionFormat(multi) @Param parent query string false "folder whose content to export, without the folder itself" @Param files query bool false "false: the images in _files are empty, only named" @Success 200 {file} binary @Failure 400 {object} respond.Failure @Failure 404 {object} respond.Failure @Failure 500 {object} respond.Failure @Router /api/export [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址