openapi: 3.2.0 info: title: Fusio Test API description: Self-Hosted API Management for Builders. version: '1' servers: - url: https://demo.fusio-project.org tags: - name: Test paths: /backend/test/{test_id}: parameters: - name: test_id in: path required: true schema: type: string get: tags: - Test description: Returns a specific test operationId: backend.test.get responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Backend_Test' 4XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 5XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' security: - app: - backend.test summary: Backend test get x-summary-source: derived put: tags: - Test description: Updates an existing test operationId: backend.test.update requestBody: content: application/json: schema: $ref: '#/components/schemas/Backend_Test' responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 4XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 5XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' security: - app: - backend.test summary: Backend test update x-summary-source: derived /backend/test: get: tags: - Test description: Returns a paginated list of tests operationId: backend.test.getAll parameters: - name: startIndex in: query required: false schema: type: integer - name: count in: query required: false schema: type: integer - name: search in: query required: false schema: type: string responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Backend_TestCollection' 4XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 5XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' security: - app: - backend.test summary: Backend test get all x-summary-source: derived put: tags: - Test description: Refresh all tests operationId: backend.test.refresh responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 4XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 5XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' security: - app: - backend.test summary: Backend test refresh x-summary-source: derived post: tags: - Test description: Run all tests operationId: backend.test.run responses: '200': description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 4XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' 5XX: description: '' content: application/json: schema: $ref: '#/components/schemas/Common_Message' security: - app: - backend.test summary: Backend test run x-summary-source: derived components: schemas: Backend_ActionExecuteRequestBody: description: Represents a request body type: object additionalProperties: {} Backend_TestCollection: description: Base collection type: object properties: totalResults: type: integer startIndex: type: integer itemsPerPage: type: integer entry: type: array items: $ref: '#/components/schemas/Backend_Test' Backend_TestConfig: $ref: '#/components/schemas/Backend_ActionExecuteRequest' Backend_Test: description: This object represents a test. A test helps to verify that all operations work as expected type: object properties: id: description: Unique identifier for the object type: integer status: description: Status of the object either 1 = pending, 2 = success, 3 = warning, 4 = error, 5 = skipped or 6 = disabled type: integer operationName: type: string message: type: string response: type: string config: $ref: '#/components/schemas/Backend_TestConfig' Backend_ActionExecuteRequest: description: Represents a request to execute an action type: object properties: method: description: HTTP method i.e. GET, POST type: string uriFragments: description: URL-encoded uri fragments i.e. foo=bar&bar=foo type: string parameters: description: URL-encoded query parameters i.e. foo=bar&bar=foo type: string headers: description: URL-encoded headers i.e. foo=bar&bar=foo type: string body: $ref: '#/components/schemas/Backend_ActionExecuteRequestBody' Common_Message: description: Common error message type: object properties: success: type: boolean message: type: string id: type: string securitySchemes: app: type: oauth2 flows: clientCredentials: tokenUrl: https://demo.fusio-project.org/authorization/token refreshUrl: https://demo.fusio-project.org/authorization/token scopes: backend: '' backend.account: '' backend.action: '' backend.agent: '' backend.app: '' backend.audit: '' backend.backup: '' backend.bundle: '' backend.category: '' backend.config: '' backend.connection: '' backend.cronjob: '' backend.dashboard: '' backend.event: '' backend.firewall: '' backend.form: '' backend.generator: '' backend.identity: '' backend.log: '' backend.marketplace: '' backend.operation: '' backend.page: '' backend.plan: '' backend.rate: '' backend.role: '' backend.schema: '' backend.scope: '' backend.sdk: '' backend.specification: '' backend.statistic: '' backend.taxonomy: '' backend.tenant: '' backend.test: '' backend.token: '' backend.transaction: '' backend.trash: '' backend.trigger: '' backend.user: '' backend.webhook: '' authorizationCode: authorizationUrl: https://demo.fusio-project.org/authorization/authorize tokenUrl: https://demo.fusio-project.org/authorization/token refreshUrl: https://demo.fusio-project.org/authorization/token scopes: backend: '' backend.account: '' backend.action: '' backend.agent: '' backend.app: '' backend.audit: '' backend.backup: '' backend.bundle: '' backend.category: '' backend.config: '' backend.connection: '' backend.cronjob: '' backend.dashboard: '' backend.event: '' backend.firewall: '' backend.form: '' backend.generator: '' backend.identity: '' backend.log: '' backend.marketplace: '' backend.operation: '' backend.page: '' backend.plan: '' backend.rate: '' backend.role: '' backend.schema: '' backend.scope: '' backend.sdk: '' backend.specification: '' backend.statistic: '' backend.taxonomy: '' backend.tenant: '' backend.test: '' backend.token: '' backend.transaction: '' backend.trash: '' backend.trigger: '' backend.user: '' backend.webhook: ''