{"openapi":"3.1.0","info":{"description":"rpe demo","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"title":"rpe demo","version":"v0.0.1"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/api-cp-springboot-template"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"tags":[{"description":"the Default API","name":"Default"}],"paths":{"/":{"get":{"operationId":"welcome","responses":{"200":{"content":{"*/*":{"schema":{"type":"string"}}},"description":"OK"}},"tags":["root-controller"]}},"/courthouses/{court_id}":{"get":{"operationId":"courthousesCourtIdGet","parameters":[{"description":"Unique reference number for the court house","in":"path","name":"court_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHousesschema"}}},"description":"court details found"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CourtHousesschema"}}},"description":"bad input parameter"}},"tags":["Default"]}}},"components":{"schemas":{"CourtHousesschema":{"type":"object","properties":{"courtHouse":{"$ref":"#/components/schemas/courtHousesschema_courtHouse"}}},"VenueContact":{"type":"object","properties":{"primaryContactName":{"type":"string","description":"Name for contact of court","pattern":"^.*$"},"venueEmail":{"type":"string","description":"Email for the venue","pattern":"^.*$"},"venueSupport":{"type":"string","description":"National contact number for MOJ Courts and Venues","pattern":"^.*$"},"venueTelephone":{"type":"string","description":"Telephone number for the venue","pattern":"^.*$"}}},"courtHousesschema_courtHouse":{"type":"object","description":"The court house that owns the court rooms","properties":{"courtHouseCode":{"type":"string","description":"Links to the court that is responsible for the courtrooms"},"courtHouseDescription":{"type":"string","description":"Description of the court"},"courtHouseName":{"type":"string","description":"Name of the court house"},"courtHouseType":{"type":"string","description":"Specifies the type of court","enum":["crown","magistrate"]},"courtRoom":{"type":"array","items":{"$ref":"#/components/schemas/courtHousesschema_courtHouse_courtRoom_inner"}}}},"courtHousesschema_courtHouse_courtRoom_inner":{"type":"object","description":"The court room that owns the court rooms","properties":{"courtRoomId":{"type":"integer","format":"int32","description":"Ref data id (EPIMS or OU Court id)"},"courtRoomName":{"type":"string","description":"Name for the court room"},"courtRoomNumber":{"type":"integer","format":"int32","description":"Court room number in court"},"venueContact":{"$ref":"#/components/schemas/VenueContact"}}}}}}
