Skip to content

Commit

Permalink
Merge pull request #23 from frontegg/revert-22-update-openapi
Browse files Browse the repository at this point in the history
Revert "Update OpenAPI Specs"
  • Loading branch information
MashaPav authored Nov 14, 2024
2 parents 3203a16 + ec5cf74 commit fd9f9cb
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 5 deletions.
9 changes: 4 additions & 5 deletions agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"operationId": "OpenApiPDPController_isEntitledToFeature",
"summary": "Is Entitled To Feature",
"description": "Check whether a given tenant or user is entitled to the requested feature",
"deprecated": true,
"parameters": [],
"requestBody": {
"required": true,
Expand Down Expand Up @@ -90,11 +89,11 @@
]
}
},
"/v1/data/e10s/routes/is_entitled_to_input_resource": {
"/v1/data/e10s/routes/is_entitled_to_input_route": {
"post": {
"operationId": "OpenApiPDPController_isEntitledToResource",
"summary": "Is Entitled To Resource",
"description": "Check whether a given tenant or user is entitled to the requested resource",
"operationId": "OpenApiPDPController_isEntitledToRoute",
"summary": "Is Entitled To Route",
"description": "Check whether a given tenant or user is entitled to the requested route",
"parameters": [],
"requestBody": {
"required": true,
Expand Down
230 changes: 230 additions & 0 deletions identity.json
Original file line number Diff line number Diff line change
Expand Up @@ -8904,6 +8904,84 @@
]
}
},
"/resources/applications/v1/users-apps": {
"get": {
"operationId": "ApplicationsControllerV1_getApplicationsForMultipleUsers",
"summary": "Get applications for multiple users",
"description": "This route gets applications for multiple users.",
"parameters": [
{
"name": "userIds",
"required": true,
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"description": ""
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserApplicationsResponseDto"
}
}
}
}
}
},
"tags": [
"Users-applications management"
]
}
},
"/resources/applications/v1/apps-users": {
"get": {
"operationId": "ApplicationsControllerV1_getUsersForMultipleApplications",
"summary": "Get users for multiple applications",
"description": "This route gets users for multiple applications.",
"parameters": [
{
"name": "appIds",
"required": true,
"in": "query",
"schema": {
"type": "array",
"items": {
"type": "string"
}
},
"description": ""
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ApplicationUsersResponseDto"
}
}
}
}
}
},
"tags": [
"Users-applications management"
]
}
},
"/resources/applications/v1": {
"post": {
"operationId": "ApplicationsControllerV1_assignUsersToApplication",
Expand Down Expand Up @@ -8964,6 +9042,68 @@
]
}
},
"/resources/applications/v1/apps-user": {
"post": {
"operationId": "ApplicationsControllerV1_assignUserToMultipleApplications",
"summary": "Assign user to multiple applications",
"description": "This route assigns user to multiple applications.",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AssignUserToMultipleApplicationsRequestDto"
}
}
}
},
"responses": {
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ApplicationUserTenantsResponseDto"
}
}
}
}
}
},
"tags": [
"Users-applications management"
]
}
},
"/resources/applications/v1/user-apps": {
"delete": {
"operationId": "ApplicationsControllerV1_unassignUserFromMultipleApplications",
"summary": "Unassign user from multiple applications",
"description": "This route unassigns user from multiple applications.",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/UnassignUserFromMultipleAppsRequestDto"
}
}
}
},
"responses": {
"200": {
"description": ""
}
},
"tags": [
"Users-applications management"
]
}
},
"/resources/applications/user-tenants/active/v1": {
"get": {
"operationId": "ApplicationsActiveUserTenantsControllerV1_getUserApplicationActiveTenants",
Expand Down Expand Up @@ -12551,6 +12691,46 @@
}
}
},
"UserApplicationsResponseDto": {
"type": "object",
"properties": {
"userId": {
"type": "string",
"description": ""
},
"appIds": {
"type": "array",
"items": {
"type": "string"
},
"description": ""
}
},
"required": [
"userId",
"appIds"
]
},
"ApplicationUsersResponseDto": {
"type": "object",
"properties": {
"appId": {
"type": "string",
"description": ""
},
"userIds": {
"type": "array",
"items": {
"type": "string"
},
"description": ""
}
},
"required": [
"appId",
"userIds"
]
},
"AssignUsersToAppRequestDto": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12599,6 +12779,31 @@
"createdAt"
]
},
"AssignUserToMultipleApplicationsRequestDto": {
"type": "object",
"properties": {
"userId": {
"type": "string",
"description": ""
},
"tenantId": {
"type": "string",
"description": ""
},
"appIds": {
"type": "array",
"items": {
"type": "string"
},
"description": ""
}
},
"required": [
"userId",
"tenantId",
"appIds"
]
},
"UnassignUsersFromAppRequestDto": {
"type": "object",
"properties": {
Expand All @@ -12624,6 +12829,31 @@
"userIds"
]
},
"UnassignUserFromMultipleAppsRequestDto": {
"type": "object",
"properties": {
"userId": {
"type": "string",
"description": ""
},
"tenantId": {
"type": "string",
"description": ""
},
"appIds": {
"type": "array",
"items": {
"type": "string"
},
"description": ""
}
},
"required": [
"userId",
"tenantId",
"appIds"
]
},
"UserApplicationActiveTenantResponse": {
"type": "object",
"properties": {
Expand Down

0 comments on commit fd9f9cb

Please sign in to comment.