openapi: 3.0.0 servers: - description: API Marketplace api - mocking example api url: https://virtserver.swaggerhub.com/HMCTS-DTS/api-hmcts-crime-template/1.0.0 info: title: API Marketplace api - example api description: API Marketplace api - simple example version: 0.0.1 contact: email: no-reply@hmcts.com license: name: MIT url: 'https://opensource.org/licenses/MIT' paths: /: get: description: Root endpoint operationId: getRoot tags: - root responses: '200': description: OK content: text/plain: schema: type: string example: Hello /onboarding/requests: post: description: Submit an API onboarding request operationId: createOnboardingRequest tags: - onboarding requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/OnboardingRequest" responses: '201': description: Onboarding request submitted successfully content: application/json: schema: $ref: "#/components/schemas/OnboardingRequestResponse" '400': description: Bad input parameter content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" /example/{example_id}: get: description: Get example for example_id operationId: getExampleByExampleId tags: - examples parameters: - in: path name: example_id required: true description: Unique id for the example - long schema: type: integer format: int64 responses: '200': description: Examples found content: application/json: schema: $ref: "#/components/schemas/ExampleResponse" '400': description: Bad input parameter content: application/json: schema: $ref: "#/components/schemas/ErrorResponse" components: schemas: OnboardingRequest: description: Request to onboard to an API in the marketplace type: object required: - name - organisation - email - jobTitle - apiRequested - environment - useCase properties: name: type: string description: Full name of the requestor example: Colin Greenwood organisation: type: string description: Organisation the requestor belongs to example: HMCTS email: type: string description: Contact email address example: x@a.com jobTitle: type: string description: Job title of the requestor example: Dev phone: type: string description: Contact phone number example: "+447973254324" apiRequested: type: string description: Name of the API being requested example: RAG Service API environment: type: string description: Target environment for access example: sandbox callVolume: type: string description: Expected call volume example: low useCase: type: string description: Description of how the API will be used example: testing OnboardingRequestResponse: description: Confirmation of a submitted onboarding request type: object properties: requestId: type: string description: Unique identifier for the onboarding request example: "onb-12345" status: type: string description: Current status of the request example: pending submittedAt: type: string format: date-time description: Timestamp when the request was submitted ExampleResponse: description: Details of examples associated with the example id type: object properties: exampleId: description: Id of the example - long type: integer format: int64 exampleText: description: Information associated with the example id type: string example: "Some text" ErrorResponse: type: object properties: error: type: string description: Machine-readable error code message: type: string description: Human-readable error message details: type: object additionalProperties: true description: Additional error context timestamp: type: string format: date-time traceId: type: string description: Unique identifier for error tracing