{"openapi":"3.1.0","info":{"title":"API Marketplace Examples","description":"Mock server exposing the examples held in published API specifications","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"version":"v0.0.1"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/service-api-marketplace-examples"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/":{"get":{"tags":["hello-world-controller"],"operationId":"welcome","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/apis":{"get":{"tags":["catalogue-controller"],"summary":"List the APIs whose examples are served here","operationId":"apis","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApiSummary"}}}}}}}},"/hello":{"get":{"tags":["hello-world-controller"],"summary":"Hello world","description":"Placeholder endpoint until spec-backed examples are served","operationId":"hello","responses":{"200":{"description":"Greeting returned","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/{code}/**":{"get":{"tags":["example-controller"],"summary":"Serve a spec example","description":"Returns the example declared in the API's published OpenAPI spec for the matching operation","operationId":"example","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"example","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"put":{"tags":["example-controller"],"summary":"Serve a spec example","description":"Returns the example declared in the API's published OpenAPI spec for the matching operation","operationId":"example_2","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"example","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["example-controller"],"summary":"Serve a spec example","description":"Returns the example declared in the API's published OpenAPI spec for the matching operation","operationId":"example_1","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"example","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"delete":{"tags":["example-controller"],"summary":"Serve a spec example","description":"Returns the example declared in the API's published OpenAPI spec for the matching operation","operationId":"example_3","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"example","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"options":{"tags":["example-controller"],"summary":"Serve a spec example","description":"Returns the example declared in the API's published OpenAPI spec for the matching operation","operationId":"example_6","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"example","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"head":{"tags":["example-controller"],"summary":"Serve a spec example","description":"Returns the example declared in the API's published OpenAPI spec for the matching operation","operationId":"example_5","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"example","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"patch":{"tags":["example-controller"],"summary":"Serve a spec example","description":"Returns the example declared in the API's published OpenAPI spec for the matching operation","operationId":"example_4","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"example","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"ApiSummary":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"},"operations":{"type":"array","items":{"type":"string"}},"specUrl":{"type":"string"}}}}}}
