Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶ added in v1.2.0
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 ¶
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.