data_model_draft

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v1.2.0

func Create(c *gin.Context)

Create go docs @Summary Create a new `DataModel` @Description Create a new `DataModel`, start with a draft mode, need to be published before CRUD data @Tags DataModelDraft @Accept json @Produce json @Security ApiKeyAuth @Param data body dto.CreateDataModelDraftRequest true "create data model request" @Success 200 {object} schema.DataModel @Failure 400 {object} dto.ErrorResponse @Failure 404 {object} dto.ErrorResponse @Failure 500 {object} dto.ErrorResponse @Router /api/v1/data-model-draft [post]

func OnEditing

func OnEditing(c *gin.Context)

OnEditing go docs @Summary marks a data model is being editing @Description marks this `DataModelDraft` is being edited by someone, thus can not be updated by anyone else. @Tags DataModelDraft @Accept json @Produce json @Security ApiKeyAuth @Failure 400 {object} dto.ErrorResponse @Failure 404 {object} dto.ErrorResponse @Failure 500 {object} dto.ErrorResponse @Router /api/v1/data-model-draft/{id}/editing [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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