|
651 | 651 | ] |
652 | 652 | } |
653 | 653 | }, |
| 654 | + "/v1/tenants/{tenant_id}/permissions/bulk-check": { |
| 655 | + "post": { |
| 656 | + "summary": "bulk check api", |
| 657 | + "description": "Check multiple permissions in a single request. Maximum 100 requests allowed.", |
| 658 | + "operationId": "permissions.bulk-check", |
| 659 | + "responses": { |
| 660 | + "200": { |
| 661 | + "description": "A successful response.", |
| 662 | + "schema": { |
| 663 | + "$ref": "#/definitions/PermissionBulkCheckResponse" |
| 664 | + } |
| 665 | + }, |
| 666 | + "default": { |
| 667 | + "description": "An unexpected error response.", |
| 668 | + "schema": { |
| 669 | + "$ref": "#/definitions/Status" |
| 670 | + } |
| 671 | + } |
| 672 | + }, |
| 673 | + "parameters": [ |
| 674 | + { |
| 675 | + "name": "tenant_id", |
| 676 | + "description": "Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant \u003ccode\u003et1\u003c/code\u003e for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes.", |
| 677 | + "in": "path", |
| 678 | + "required": true, |
| 679 | + "type": "string" |
| 680 | + }, |
| 681 | + { |
| 682 | + "name": "body", |
| 683 | + "in": "body", |
| 684 | + "required": true, |
| 685 | + "schema": { |
| 686 | + "$ref": "#/definitions/BulkCheckBody" |
| 687 | + } |
| 688 | + } |
| 689 | + ], |
| 690 | + "tags": [ |
| 691 | + "Permission" |
| 692 | + ] |
| 693 | + } |
| 694 | + }, |
654 | 695 | "/v1/tenants/{tenant_id}/permissions/check": { |
655 | 696 | "post": { |
656 | 697 | "summary": "check api", |
|
1479 | 1520 | "default": "ATTRIBUTE_TYPE_UNSPECIFIED", |
1480 | 1521 | "description": "Enumerates the types of attribute.\n\n - ATTRIBUTE_TYPE_UNSPECIFIED: Not specified attribute type. This is the default value.\n - ATTRIBUTE_TYPE_BOOLEAN: A boolean attribute type.\n - ATTRIBUTE_TYPE_BOOLEAN_ARRAY: A boolean array attribute type.\n - ATTRIBUTE_TYPE_STRING: A string attribute type.\n - ATTRIBUTE_TYPE_STRING_ARRAY: A string array attribute type.\n - ATTRIBUTE_TYPE_INTEGER: An integer attribute type.\n - ATTRIBUTE_TYPE_INTEGER_ARRAY: An integer array attribute type.\n - ATTRIBUTE_TYPE_DOUBLE: A double attribute type.\n - ATTRIBUTE_TYPE_DOUBLE_ARRAY: A double array attribute type." |
1481 | 1522 | }, |
| 1523 | + "BulkCheckBody": { |
| 1524 | + "type": "object", |
| 1525 | + "properties": { |
| 1526 | + "metadata": { |
| 1527 | + "$ref": "#/definitions/PermissionCheckRequestMetadata", |
| 1528 | + "description": "Metadata associated with this request, required." |
| 1529 | + }, |
| 1530 | + "items": { |
| 1531 | + "type": "array", |
| 1532 | + "items": { |
| 1533 | + "type": "object", |
| 1534 | + "$ref": "#/definitions/PermissionBulkCheckRequestItem" |
| 1535 | + }, |
| 1536 | + "description": "List of permission check requests, maximum 100 items." |
| 1537 | + }, |
| 1538 | + "context": { |
| 1539 | + "$ref": "#/definitions/Context", |
| 1540 | + "description": "Contextual data that can be dynamically added to permission check requests. See details on [Contextual Data](../../operations/contextual-tuples)" |
| 1541 | + }, |
| 1542 | + "arguments": { |
| 1543 | + "type": "array", |
| 1544 | + "items": { |
| 1545 | + "type": "object", |
| 1546 | + "$ref": "#/definitions/Argument" |
| 1547 | + }, |
| 1548 | + "description": "Additional arguments associated with this request." |
| 1549 | + } |
| 1550 | + }, |
| 1551 | + "description": "PermissionBulkCheckRequest is the request message for the BulkCheck method in the Permission service." |
| 1552 | + }, |
1482 | 1553 | "Bundle.DeleteBody": { |
1483 | 1554 | "type": "object", |
1484 | 1555 | "properties": { |
|
2487 | 2558 | }, |
2488 | 2559 | "description": "PermissionExpandRequest is the request message for the Expand method in the Permission service." |
2489 | 2560 | }, |
| 2561 | + "PermissionBulkCheckRequestItem": { |
| 2562 | + "type": "object", |
| 2563 | + "properties": { |
| 2564 | + "entity": { |
| 2565 | + "$ref": "#/definitions/Entity", |
| 2566 | + "example": "repository:1", |
| 2567 | + "description": "Entity on which the permission needs to be checked, required." |
| 2568 | + }, |
| 2569 | + "permission": { |
| 2570 | + "type": "string", |
| 2571 | + "description": "The action the user wants to perform on the resource" |
| 2572 | + }, |
| 2573 | + "subject": { |
| 2574 | + "$ref": "#/definitions/Subject", |
| 2575 | + "description": "Subject for which the permission needs to be checked, required." |
| 2576 | + } |
| 2577 | + }, |
| 2578 | + "title": "BULK CHECK" |
| 2579 | + }, |
| 2580 | + "PermissionBulkCheckResponse": { |
| 2581 | + "type": "object", |
| 2582 | + "properties": { |
| 2583 | + "results": { |
| 2584 | + "type": "array", |
| 2585 | + "items": { |
| 2586 | + "type": "object", |
| 2587 | + "$ref": "#/definitions/PermissionCheckResponse" |
| 2588 | + }, |
| 2589 | + "description": "List of permission check responses corresponding to each request." |
| 2590 | + } |
| 2591 | + }, |
| 2592 | + "description": "PermissionBulkCheckResponse is the response message for the BulkCheck method in the Permission service." |
| 2593 | + }, |
2490 | 2594 | "PermissionCheckRequestMetadata": { |
2491 | 2595 | "type": "object", |
2492 | 2596 | "properties": { |
|
0 commit comments