diff --git a/backend/api/docs/docs.go b/backend/api/docs/docs.go index 02df1eee..484acb2f 100644 --- a/backend/api/docs/docs.go +++ b/backend/api/docs/docs.go @@ -430,7 +430,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/model.Persona" + "$ref": "#/definitions/model.Connector" } } } @@ -627,7 +627,7 @@ const docTemplate = `{ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/model.Persona" + "$ref": "#/definitions/model.Credential" } } } diff --git a/backend/api/docs/swagger.json b/backend/api/docs/swagger.json index d940a795..abfe5468 100644 --- a/backend/api/docs/swagger.json +++ b/backend/api/docs/swagger.json @@ -422,7 +422,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/model.Persona" + "$ref": "#/definitions/model.Connector" } } } @@ -619,7 +619,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/model.Persona" + "$ref": "#/definitions/model.Credential" } } } diff --git a/backend/api/docs/swagger.yaml b/backend/api/docs/swagger.yaml index 42637d93..d71f385b 100644 --- a/backend/api/docs/swagger.yaml +++ b/backend/api/docs/swagger.yaml @@ -826,7 +826,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/model.Persona' + $ref: '#/definitions/model.Connector' security: - ApiKeyAuth: [] summary: delete or restore connector @@ -969,7 +969,7 @@ paths: "200": description: OK schema: - $ref: '#/definitions/model.Persona' + $ref: '#/definitions/model.Credential' security: - ApiKeyAuth: [] summary: delete or restore credential diff --git a/backend/api/handler/connector.go b/backend/api/handler/connector.go index 0e7ca861..fbb36fbc 100644 --- a/backend/api/handler/connector.go +++ b/backend/api/handler/connector.go @@ -168,7 +168,7 @@ func (h *ConnectorHandler) GetSourceTypes(c *gin.Context, identity *security.Ide // @Param action path string true "action : delete | restore " // @Produce json // @Security ApiKeyAuth -// @Success 200 {object} model.Persona +// @Success 200 {object} model.Connector // @Router /manage/connector/{id}/{action} [post] func (h *ConnectorHandler) Archive(c *gin.Context, identity *security.Identity) error { id, err := strconv.ParseInt(c.Param("id"), 10, 64) diff --git a/backend/api/handler/credential.go b/backend/api/handler/credential.go index 8becc53d..98c1c11e 100644 --- a/backend/api/handler/credential.go +++ b/backend/api/handler/credential.go @@ -151,7 +151,7 @@ func (h *CredentialHandler) Update(c *gin.Context) error { // @Param action path string true "action : delete | restore " // @Produce json // @Security ApiKeyAuth -// @Success 200 {object} model.Persona +// @Success 200 {object} model.Credential // @Router /manage/credential/{id}/{action} [post] func (h *CredentialHandler) Archive(c *gin.Context, identity *security.Identity) error { id, err := strconv.ParseInt(c.Param("id"), 10, 64)