|
| 1 | +openapi: 3.1.0 |
| 2 | +info: |
| 3 | + title: MarketDataAPI.com - Shared Responses |
| 4 | + version: '1' |
| 5 | + |
| 6 | +components: |
| 7 | + responses: |
| 8 | + BadRequest: |
| 9 | + description: Invalid request parameters |
| 10 | + content: |
| 11 | + application/problem+json: |
| 12 | + schema: |
| 13 | + $ref: './schemas/error.yaml#/components/schemas/ProblemDetail' |
| 14 | + examples: |
| 15 | + invalidQuery: |
| 16 | + summary: Invalid search query |
| 17 | + value: |
| 18 | + type: 'https://marketdataapi.com/errors/bad-request' |
| 19 | + title: 'Invalid Request Parameters' |
| 20 | + status: 400 |
| 21 | + detail: 'Query parameter ''q'' must be at least 1 character long' |
| 22 | + instance: '/v1/instruments?q=' |
| 23 | + code: 'validation/invalid-parameter' |
| 24 | + |
| 25 | + Unauthorized: |
| 26 | + description: Authentication failed |
| 27 | + content: |
| 28 | + application/problem+json: |
| 29 | + schema: |
| 30 | + $ref: './schemas/error.yaml#/components/schemas/ProblemDetail' |
| 31 | + |
| 32 | + TooManyRequests: |
| 33 | + description: Rate limit exceeded |
| 34 | + content: |
| 35 | + application/problem+json: |
| 36 | + schema: |
| 37 | + $ref: './schemas/error.yaml#/components/schemas/ProblemDetail' |
| 38 | + |
| 39 | + PaymentRequired: |
| 40 | + description: Subscription required for this endpoint |
| 41 | + content: |
| 42 | + application/problem+json: |
| 43 | + schema: |
| 44 | + $ref: './schemas/error.yaml#/components/schemas/ProblemDetail' |
| 45 | + |
| 46 | + Forbidden: |
| 47 | + description: Authenticated but forbidden |
| 48 | + content: |
| 49 | + application/problem+json: |
| 50 | + schema: |
| 51 | + $ref: './schemas/error.yaml#/components/schemas/ProblemDetail' |
| 52 | + |
| 53 | + NotFound: |
| 54 | + description: Resource not found |
| 55 | + content: |
| 56 | + application/problem+json: |
| 57 | + schema: |
| 58 | + $ref: './schemas/error.yaml#/components/schemas/ProblemDetail' |
| 59 | + |
| 60 | + InternalServerError: |
| 61 | + description: Unexpected server error |
| 62 | + content: |
| 63 | + application/problem+json: |
| 64 | + schema: |
| 65 | + $ref: './schemas/error.yaml#/components/schemas/ProblemDetail' |
0 commit comments