Skip to content

Commit

Permalink
Merge pull request #85 from gen-mind/develop
Browse files Browse the repository at this point in the history
develop
  • Loading branch information
apaladiychuk authored May 1, 2024
2 parents b78ece6 + cecfecc commit a0789dd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions backend/api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/model.Persona"
"$ref": "#/definitions/model.Connector"
}
}
}
Expand Down Expand Up @@ -627,7 +627,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/model.Persona"
"$ref": "#/definitions/model.Credential"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions backend/api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/model.Persona"
"$ref": "#/definitions/model.Connector"
}
}
}
Expand Down Expand Up @@ -619,7 +619,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/model.Persona"
"$ref": "#/definitions/model.Credential"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions backend/api/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/model.Persona'
$ref: '#/definitions/model.Connector'
security:
- ApiKeyAuth: []
summary: delete or restore connector
Expand Down Expand Up @@ -969,7 +969,7 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/model.Persona'
$ref: '#/definitions/model.Credential'
security:
- ApiKeyAuth: []
summary: delete or restore credential
Expand Down
2 changes: 1 addition & 1 deletion backend/api/handler/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion backend/api/handler/credential.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a0789dd

Please sign in to comment.