Skip to content

Commit

Permalink
Merge pull request #20 from frontegg/update-openapi
Browse files Browse the repository at this point in the history
Update OpenAPI Specs
  • Loading branch information
yossi-frontegg authored Nov 14, 2024
2 parents 0cf0af7 + dd004b9 commit 9f41419
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions agent.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"openapi": "3.0.0",
"paths": {
"/v1/data/e10s/features/is_entitled_to_input_feature": {
"/v2/data/e10s/features/is_entitled_to_input_feature": {
"post": {
"operationId": "OpenApiPDPController_isEntitledToFeature",
"summary": "Is Entitled To Feature",
Expand Down Expand Up @@ -45,11 +45,12 @@
]
}
},
"/v1/data/e10s/permissions/is_entitled_to_input_permission": {
"/v1/data/e10s/features/is_entitled_to_input_feature": {
"post": {
"operationId": "OpenApiPDPController_isEntitledToPermission",
"summary": "Is Entitled To Permission",
"description": "Check whether a given user is entitled to the requested permission",
"deprecated": true,
"operationId": "OpenApiPDPController_isEntitledToFeature",
"summary": "Is Entitled To Feature",
"description": "Check whether a given tenant or user is entitled to the requested feature",
"parameters": [],
"requestBody": {
"required": true,
Expand All @@ -63,7 +64,7 @@
"$ref": "#/components/schemas/SubjectContext"
},
"requestContext": {
"$ref": "#/components/schemas/IsEntitledToPermissionDto"
"$ref": "#/components/schemas/IsEntitledToFeatureDto"
}
}
}
Expand All @@ -89,11 +90,11 @@
]
}
},
"/v1/data/e10s/routes/is_entitled_to_input_route": {
"/v1/data/e10s/permissions/is_entitled_to_input_permission": {
"post": {
"operationId": "OpenApiPDPController_isEntitledToRoute",
"summary": "Is Entitled To Route",
"description": "Check whether a given tenant or user is entitled to the requested route",
"operationId": "OpenApiPDPController_isEntitledToPermission",
"summary": "Is Entitled To Permission",
"description": "Check whether a given user is entitled to the requested permission",
"parameters": [],
"requestBody": {
"required": true,
Expand All @@ -107,7 +108,7 @@
"$ref": "#/components/schemas/SubjectContext"
},
"requestContext": {
"$ref": "#/components/schemas/IsEntitledToRouteDto"
"$ref": "#/components/schemas/IsEntitledToPermissionDto"
}
}
}
Expand Down

0 comments on commit 9f41419

Please sign in to comment.