{"openapi":"3.0.1","info":{"title":"sptribs-case-api","description":"Create & update case and Upload and delete docs ","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"version":"v0.0.1"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/spring-boot-template"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/case/dss-orchestration/{caseId}/update":{"put":{"tags":["case-management-controller"],"operationId":"updateCase","parameters":[{"name":"caseId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"event","in":"query","required":true,"schema":{"type":"string","enum":["SUBMIT","UPDATE"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DssCaseData"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/doc/dss-orchestration/upload":{"post":{"tags":["document-management-controller"],"operationId":"uploadDocument","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"caseTypeOfApplication","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"required":["file"],"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/case/dss-orchestration/create":{"post":{"tags":["case-management-controller"],"operationId":"createCase","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DssCaseData"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/callbacks/submitted":{"post":{"tags":["callback-controller"],"operationId":"submitted","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SubmittedCallbackResponse"}}}}}}},"/callbacks/mid-event":{"post":{"tags":["callback-controller"],"operationId":"midEvent","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AboutToStartOrSubmitResponse"}}}}}}},"/callbacks/about-to-submit":{"post":{"tags":["callback-controller"],"operationId":"aboutToSubmit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AboutToStartOrSubmitResponse"}}}}}}},"/callbacks/about-to-start":{"post":{"tags":["callback-controller"],"operationId":"aboutToStart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallbackRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AboutToStartOrSubmitResponse"}}}}}}},"/case/dss-orchestration/fetchCaseDetails/{caseId}":{"get":{"tags":["case-management-controller"],"operationId":"fetchCaseDetails","parameters":[{"name":"caseId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/":{"get":{"tags":["root-controller"],"operationId":"welcome","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/doc/dss-orchestration/{documentId}/delete":{"delete":{"tags":["document-management-controller"],"operationId":"deleteDocument","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"Document":{"type":"object","properties":{"document_url":{"type":"string"},"document_filename":{"type":"string"},"document_binary_url":{"type":"string"},"category_id":{"type":"string"}}},"DssCaseData":{"type":"object","properties":{"CaseTypeOfApplication":{"type":"string"},"SubjectFullName":{"type":"string"},"SubjectDateOfBirth":{"type":"string","format":"date"},"SubjectEmailAddress":{"type":"string"},"SubjectContactNumber":{"type":"string"},"SubjectAgreeContact":{"type":"string","enum":["Yes","No"]},"Representation":{"type":"string","enum":["Yes","No"]},"RepresentationQualified":{"type":"string","enum":["Yes","No"]},"RepresentativeFullName":{"type":"string"},"RepresentativeOrganisationName":{"type":"string"},"RepresentativeContactNumber":{"type":"string"},"RepresentativeEmailAddress":{"type":"string"},"DocumentRelevance":{"type":"string"},"AdditionalInformation":{"type":"string"},"PcqId":{"type":"string"},"TribunalFormDocuments":{"type":"array","items":{"$ref":"#/components/schemas/ListValueEdgeCaseDocument"}},"SupportingDocuments":{"type":"array","items":{"$ref":"#/components/schemas/ListValueEdgeCaseDocument"}},"OtherInfoDocuments":{"type":"array","items":{"$ref":"#/components/schemas/ListValueEdgeCaseDocument"}},"NotifyPartyMessage":{"type":"string"},"IsRepresentativePresent":{"type":"string","enum":["Yes","No"]}}},"EdgeCaseDocument":{"type":"object","properties":{"documentLink":{"$ref":"#/components/schemas/Document"}}},"ListValueEdgeCaseDocument":{"type":"object","properties":{"id":{"type":"string"},"value":{"$ref":"#/components/schemas/EdgeCaseDocument"}}},"CallbackRequest":{"type":"object","properties":{"case_details":{"$ref":"#/components/schemas/CaseDetails"},"case_details_before":{"$ref":"#/components/schemas/CaseDetails"},"event_id":{"type":"string"}}},"CaseDetails":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"jurisdiction":{"type":"string"},"state":{"type":"string"},"case_type_id":{"type":"string"},"created_date":{"type":"string","format":"date-time"},"last_modified":{"type":"string","format":"date-time"},"locked_by_user_id":{"type":"integer","format":"int32"},"security_level":{"type":"integer","format":"int32"},"case_data":{"type":"object","additionalProperties":{"type":"object"}},"security_classification":{"type":"string","enum":["PUBLIC","PRIVATE","RESTRICTED"]},"callback_response_status":{"type":"string"}}},"SubmittedCallbackResponse":{"type":"object","properties":{"confirmation_header":{"type":"string"},"confirmation_body":{"type":"string"}}},"AboutToStartOrSubmitResponse":{"type":"object","properties":{"data":{"type":"object"},"errors":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}},"state":{"type":"object"},"data_classification":{"type":"object","additionalProperties":{"type":"object"}},"security_classification":{"type":"string"}}}}}}
