mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-13 13:13:38 +00:00
fixup! fixup! fixup! fixup! fixup! fixup! refactor(api): moving organization API resourced based
added DeleteOrganization()
This commit is contained in:
@@ -244,7 +244,7 @@ service OrganizationService {
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||
tags: "Organizations";
|
||||
summary: "Remove Organization";
|
||||
summary: "Deletes Organization";
|
||||
description: "Deletes the organization and all its resources (Users, Projects, Grants to and from the org). Users of this organization will not be able to log in."
|
||||
responses: {
|
||||
key: "200";
|
||||
@@ -346,45 +346,42 @@ message GetOrganizationByIDResponse {
|
||||
}
|
||||
|
||||
message ListOrganizationsRequest {
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
||||
json_schema: {
|
||||
description: "Search query for lists";
|
||||
required: ["query"]
|
||||
};
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
||||
json_schema: {
|
||||
description: "Search query for lists";
|
||||
required: ["query"]
|
||||
};
|
||||
};
|
||||
|
||||
//list limitations and ordering
|
||||
// zitadel.v1.ListQuery query = 1;
|
||||
zitadel.object.v2beta.ListQuery query = 1;
|
||||
// the field the result is sorted
|
||||
// zitadel.org.v1.OrgFieldName sorting_column = 2;
|
||||
zitadel.org.v2beta.OrgFieldName sorting_column = 2;
|
||||
//criteria the client is looking for
|
||||
repeated zitadel.org.v2beta.OrgQuery queries = 3;
|
||||
// list limitations and ordering
|
||||
zitadel.object.v2beta.ListQuery query = 1;
|
||||
// the field the result is sorted
|
||||
zitadel.org.v2beta.OrgFieldName sorting_column = 2;
|
||||
//criteria the client is looking for
|
||||
repeated zitadel.org.v2beta.OrgQuery queries = 3;
|
||||
}
|
||||
|
||||
message ListOrganizationsResponse {
|
||||
zitadel.object.v2beta.ListDetails details = 1;
|
||||
// zitadel.org.v2beta.Organization organization = 1;
|
||||
zitadel.org.v2beta.OrgFieldName sorting_column = 2;
|
||||
repeated zitadel.org.v2beta.Organization result = 3;
|
||||
zitadel.object.v2beta.ListDetails details = 1;
|
||||
zitadel.org.v2beta.OrgFieldName sorting_column = 2;
|
||||
repeated zitadel.org.v2beta.Organization result = 3;
|
||||
}
|
||||
|
||||
message DeleteOrganizationRequest {
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
||||
json_schema: {
|
||||
required: ["org_id"]
|
||||
};
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema) = {
|
||||
json_schema: {
|
||||
required: ["id"]
|
||||
};
|
||||
};
|
||||
|
||||
string org_id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\"";
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
}
|
||||
];
|
||||
string id = 1 [
|
||||
(validate.rules).string = {min_len: 1, max_len: 200},
|
||||
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
|
||||
example: "\"69629023906488334\"";
|
||||
min_length: 1;
|
||||
max_length: 200;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
message DeleteOrganizationResponse {
|
||||
|
Reference in New Issue
Block a user