fix: query side (#257)

* fix: project by id return projectview

* fix: return always view model on query side

* fix: return always view model on query side
This commit is contained in:
Fabi
2020-06-23 07:06:07 +02:00
committed by GitHub
parent 6556d053b2
commit 1de574df42
15 changed files with 3621 additions and 3438 deletions

View File

@@ -53,7 +53,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1Org"
"$ref": "#/definitions/v1OrgView"
}
}
},
@@ -450,7 +450,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1Org"
"$ref": "#/definitions/v1OrgView"
}
}
},
@@ -914,7 +914,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1UserGrant"
"$ref": "#/definitions/v1UserGrantView"
}
}
},
@@ -1167,7 +1167,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1Project"
"$ref": "#/definitions/v1ProjectView"
}
}
},
@@ -1673,7 +1673,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1Application"
"$ref": "#/definitions/v1ApplicationView"
}
}
},
@@ -2100,7 +2100,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1ProjectGrant"
"$ref": "#/definitions/v1ProjectGrantView"
}
}
},
@@ -2438,7 +2438,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1UserGrant"
"$ref": "#/definitions/v1UserGrantView"
}
}
},
@@ -3405,7 +3405,7 @@
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1UserGrant"
"$ref": "#/definitions/v1UserGrantView"
}
}
},
@@ -4656,6 +4656,32 @@
],
"default": "ORGSTATE_UNSPECIFIED"
},
"v1OrgView": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"state": {
"$ref": "#/definitions/v1OrgState"
},
"creation_date": {
"type": "string",
"format": "date-time"
},
"change_date": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"sequence": {
"type": "string",
"format": "uint64"
}
}
},
"v1PasswordAgePolicy": {
"type": "object",
"properties": {