openapi: 3.1.0 info: title: Mocki API version: '2026-10-18' description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-18: 5 operation(s) read from 3 public documentation page(s) (each operation names its page in x-source). This is not the provider''s published contract; Mocki has published no machine-readable contract that the pipeline could find. Engine: local.' x-evidence-tiers: code-example: 5 documentation: 0 pages-with-code: 3 pages-read: 3 x-generated-from: documentation x-provenance: generated x-authored-by: API Evangelist x-generated: '2026-10-18' x-generator: generate-contract-from-docs.py x-engine: local x-sources: - https://mocki.io/fake-json-api - https://mocki.io/call-a-rest-api-in-react - https://mocki.io/call-a-rest-api-from-javascript paths: /: get: operationId: get tags: - Api summary: GET / x-source: https://mocki.io/call-a-rest-api-in-react parameters: - name: message in: query required: false schema: type: string responses: '200': description: Success (status as documented) x-evidence: kind: code-example language: javascript snippet: 'fetch(''https://myapi.com?message=hello'', { method: ''GET'' } )' post: operationId: post tags: - Api summary: POST / x-source: https://mocki.io/call-a-rest-api-in-react requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/PostRequest' responses: '201': description: Success (status as documented) x-evidence: kind: code-example language: javascript snippet: 'fetch(''https://myapi.com'', { method: ''POST'', headers: { accept: ''application/json'', body: JSON.stringify({ message: ''Hello World!'' })' /fake: get: operationId: get_fake tags: - Fake summary: GET /fake x-source: https://mocki.io/call-a-rest-api-in-react responses: '200': description: Success (status as documented) x-evidence: kind: code-example language: javascript snippet: 'fetch(''http://localhost:3001/fake'', { method: ''GET'' })' /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8: get: operationId: get_v1_d4867d8b_b5d5_4a48_a4ab_79131b5809b8 tags: - D4867D8B B5D5 4A48 A4Ab 79131B5809B8 summary: GET /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8 x-source: https://mocki.io/fake-json-api responses: '200': description: Success (shape read from the example response on the page) content: application/json: schema: $ref: '#/components/schemas/GetV1D4867D8BB5D54A48A4Ab79131B5809B8Response' x-evidence: kind: code-example language: curl snippet: "curl https://mocki.io/v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8\n Response : \n [\n {\n \"name\" : \"Harry Potter\" ,\n \"city\"\ \ : \"London\" \n },\n {\n \"name\" : \"Don Quixote\" ,\n \"city\" : \"Madrid\" \n },\n {\n \"name\" : \"Joan of Arc\" ,\n \"city\"\ \ : \"Paris\" \n },\n {\n \"name\" : \"Rosa Park\" ,\n \"city\" : \"Alabama\" \n }\n ]\n Get user \n If you want to simulate a detail\ \ request for a single user you can create another endpoint in the" post: operationId: post_v1_d4867d8b_b5d5_4a48_a4ab_79131b5809b8 tags: - D4867D8B B5D5 4A48 A4Ab 79131B5809B8 summary: POST /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8 x-source: https://mocki.io/call-a-rest-api-from-javascript responses: '201': description: Success (status as documented) x-evidence: kind: code-example language: javascript snippet: 'fetch(''https://mocki.io/v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8'', { method: ''POST'' } )' components: schemas: PostRequest: type: object properties: message: type: string GetV1D4867D8BB5D54A48A4Ab79131B5809B8Response: type: object properties: name: type: string city: type: string tags: - name: Api - name: D4867D8B B5D5 4A48 A4Ab 79131B5809B8 - name: Fake