Documentation
¶
Overview ¶
Package importdata restores an export: POST /api/import.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(db bun.IDB) http.HandlerFunc
Handler adds what the export holds and the base lacks, in one transaction. An application the base already has (live or in the trash) is left as it is, so the same file can be imported twice; the invalid ones are in failed. @Summary Restore an export @Tags data @Accept json @Produce json @Param backup body domain.Backup true "The file GET /api/export gave" @Success 200 {object} importdata.Result @Failure 400 {object} respond.Failure @Failure 401 {object} respond.Failure @Router /api/import [post]
Types ¶
This section is empty.