mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 22:09:07 +02:00
update openapi
This commit is contained in:
@@ -866,10 +866,10 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id1": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"id2": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
|
@@ -119,7 +119,7 @@ func (srv *server) GetManagedProfiles(c *gin.Context, params api.GetManagedProfi
|
||||
qctx, qCancel := context.WithTimeout(c.Request.Context(), srv.dbOpTimeout)
|
||||
defer qCancel()
|
||||
|
||||
res, err := session.ExecuteRead(qctx, memgraph.GetManagedProfiles(qctx, id))
|
||||
res, err := session.ExecuteRead(qctx, memgraph.GetManagedProfiles(qctx, params.XUserID))
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"msg": err.Error()})
|
||||
|
||||
|
@@ -353,8 +353,8 @@ type CreateRecipeRelationshipParams struct {
|
||||
|
||||
// CreateRelationshipJSONBody defines parameters for CreateRelationship.
|
||||
type CreateRelationshipJSONBody struct {
|
||||
Id1 *string `json:"id1,omitempty"`
|
||||
Id2 *string `json:"id2,omitempty"`
|
||||
Id1 *int `json:"id1,omitempty"`
|
||||
Id2 *int `json:"id2,omitempty"`
|
||||
Relationship *FamilyRelationship `json:"relationship,omitempty"`
|
||||
Type *CreateRelationshipJSONBodyType `json:"type,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user