documents

package
v0.0.0-...-c324bb8 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CreateDocumentHandler

type CreateDocumentHandler struct {
	// contains filtered or unexported fields
}

func (*CreateDocumentHandler) Handle

func (h *CreateDocumentHandler) Handle(ctx *ctx.Ctx) error

CreateDocument godoc @Summary Create Document @Description dummy POST method @Tags documents @Accept json @Produce json @Success 200 {object} string @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /documents [post]

type GetAllDocumentsHandler

type GetAllDocumentsHandler struct {
	// contains filtered or unexported fields
}

func (*GetAllDocumentsHandler) Handle

func (h *GetAllDocumentsHandler) Handle(ctx *ctx.Ctx) error

GetAllDocuments godoc @Summary Get All Documents @Description dummy GET method @Tags documents @Accept json @Produce json @Success 200 {object} string @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /documents [get]

type GetDocumentHandler

type GetDocumentHandler struct {
	// contains filtered or unexported fields
}

func NewGetDocumentHandler

func NewGetDocumentHandler(cd documents.GetDocumenter) *GetDocumentHandler

func (*GetDocumentHandler) Handle

func (h *GetDocumentHandler) Handle(ctx *ctx.Ctx) error

GetDocument godoc @Summary Show something @Description Get Document By ID @Tags documents @Accept json @Produce json @Param id path int true "Document ID" @Success 200 {object} string @Failure 400 {object} error @Failure 404 {object} error @Failure 500 {object} error @Router /documents/{id} [get]

Jump to

Keyboard shortcuts

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