openapi: 3.2.0 info: title: Jans Lock Lock - Policy API contact: name: Contact url: https://github.com/JanssenProject/jans/discussions license: name: License url: https://github.com/JanssenProject/jans/blob/main/LICENSE version: OAS Version servers: - url: https://jans.local.io description: The Jans server tags: - name: Lock - Policy paths: /api/v1/policy: get: tags: - Lock - Policy summary: Request policies URI list operationId: getPoliciesUriList responses: '200': description: Ok content: application/json: schema: type: string '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/LockApiError' '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/LockApiError' '500': description: InternalServerError content: application/json: schema: $ref: '#/components/schemas/LockApiError' security: - oauth2: - https://jans.io/oauth/lock/policy.readonly /api/v1/policy/{uri}: get: tags: - Lock - Policy summary: Request policy data operationId: getPolicyByUri parameters: - name: uri in: path description: Policy URI required: true schema: type: string responses: '200': description: Ok content: application/json: schema: type: string '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/LockApiError' '401': description: Unauthorized '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/LockApiError' '500': description: InternalServerError content: application/json: schema: $ref: '#/components/schemas/LockApiError' security: - oauth2: - https://jans.io/oauth/lock/policy.readonly components: schemas: LockApiError: type: object properties: code: type: string message: type: string description: type: string securitySchemes: oauth2: type: oauth2 flows: clientCredentials: tokenUrl: https://{op-hostname}/.../token scopes: https://jans.io/oauth/lock/policy.readonly: View policy related information https://jans.io/oauth/lock/health.write: Write audit health entries https://jans.io/oauth/lock/log.write: Write audit log entries https://jans.io/oauth/lock/telemetry.write: Write telemetry health entries https://jans.io/oauth/lock/stat.readonly: View stat related information