mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-07 07:16:54 +00:00
fix: projects (#221)
* feat: projects and project grants seperated * fix: tests * fix: add mock
This commit is contained in:
@@ -134,13 +134,13 @@
|
||||
},
|
||||
"/grantedprojects/_search": {
|
||||
"post": {
|
||||
"summary": "PROJECTS",
|
||||
"summary": "GRANTED_PROJECT_GRANTS",
|
||||
"operationId": "SearchGrantedProjects",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1GrantedProjectSearchResponse"
|
||||
"$ref": "#/definitions/v1ProjectGrantSearchResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -161,13 +161,12 @@
|
||||
},
|
||||
"/grantedprojects/{project_id}/grants/{id}": {
|
||||
"get": {
|
||||
"summary": "GRANTED_PROJECT_GRANTS",
|
||||
"operationId": "GetGrantedProjectGrantByID",
|
||||
"operationId": "GetGrantedProjectByID",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1GrantedProject"
|
||||
"$ref": "#/definitions/v1ProjectGrantView"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -981,6 +980,33 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/projects/_search": {
|
||||
"post": {
|
||||
"summary": "PROJECTS",
|
||||
"operationId": "SearchProjects",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "A successful response.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1ProjectSearchResponse"
|
||||
}
|
||||
}
|
||||
},
|
||||
"parameters": [
|
||||
{
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/v1ProjectSearchRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"ManagementService"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/projects/grants/members/roles": {
|
||||
"get": {
|
||||
"summary": "PROJECT_GRANT_MEMBER",
|
||||
@@ -3765,72 +3791,6 @@
|
||||
],
|
||||
"default": "GENDER_UNSPECIFIED"
|
||||
},
|
||||
"v1GrantedProject": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"$ref": "#/definitions/v1ProjectState"
|
||||
},
|
||||
"change_date": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"creation_date": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"type": {
|
||||
"$ref": "#/definitions/v1ProjectType"
|
||||
},
|
||||
"resource_owner": {
|
||||
"type": "string"
|
||||
},
|
||||
"org_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"org_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"org_domain": {
|
||||
"type": "string"
|
||||
},
|
||||
"grant_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"sequence": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1GrantedProjectSearchKey": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"PROJECTSEARCHKEY_UNSPECIFIED",
|
||||
"PROJECTSEARCHKEY_PROJECT_NAME"
|
||||
],
|
||||
"default": "PROJECTSEARCHKEY_UNSPECIFIED"
|
||||
},
|
||||
"v1GrantedProjectSearchQuery": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"$ref": "#/definitions/v1GrantedProjectSearchKey"
|
||||
},
|
||||
"method": {
|
||||
"$ref": "#/definitions/v1SearchMethod"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1GrantedProjectSearchRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -3845,30 +3805,7 @@
|
||||
"queries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/v1GrantedProjectSearchQuery"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1GrantedProjectSearchResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"offset": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"limit": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"total_result": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"result": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/v1GrantedProject"
|
||||
"$ref": "#/definitions/v1ProjectSearchQuery"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5363,6 +5300,70 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1ProjectSearchKey": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"PROJECTSEARCHKEY_UNSPECIFIED",
|
||||
"PROJECTSEARCHKEY_PROJECT_NAME"
|
||||
],
|
||||
"default": "PROJECTSEARCHKEY_UNSPECIFIED"
|
||||
},
|
||||
"v1ProjectSearchQuery": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"key": {
|
||||
"$ref": "#/definitions/v1ProjectSearchKey"
|
||||
},
|
||||
"method": {
|
||||
"$ref": "#/definitions/v1SearchMethod"
|
||||
},
|
||||
"value": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1ProjectSearchRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"offset": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"limit": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"queries": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/v1ProjectSearchQuery"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1ProjectSearchResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"offset": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"limit": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"total_result": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
},
|
||||
"result": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/v1ProjectView"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1ProjectState": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -5372,15 +5373,6 @@
|
||||
],
|
||||
"default": "PROJECTSTATE_UNSPECIFIED"
|
||||
},
|
||||
"v1ProjectType": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"PROJECTTYPE_UNSPECIFIED",
|
||||
"PROJECTTYPE_OWNED",
|
||||
"PROJECTTYPE_GRANTED"
|
||||
],
|
||||
"default": "PROJECTTYPE_UNSPECIFIED"
|
||||
},
|
||||
"v1ProjectUpdateRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -5448,6 +5440,35 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1ProjectView": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"project_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"$ref": "#/definitions/v1ProjectState"
|
||||
},
|
||||
"change_date": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"creation_date": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"resource_owner": {
|
||||
"type": "string"
|
||||
},
|
||||
"sequence": {
|
||||
"type": "string",
|
||||
"format": "uint64"
|
||||
}
|
||||
}
|
||||
},
|
||||
"v1SearchMethod": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
||||
Reference in New Issue
Block a user