{"swagger":"2.0","info":{"title":"Divorce Case Maintenance Service"},"host":"localhost:8080","basePath":"/","tags":[{"name":"ccd-controller","description":"Ccd Controller"}],"paths":{"/casemaintenance/version/1/submit":{"post":{"tags":["ccd-controller"],"summary":"Submits a divorce session to CCD","operationId":"submitCaseUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string","allowEmptyValue":false},{"in":"body","name":"data","description":"Case Data","required":true,"schema":{"type":"object"}}],"responses":{"200":{"description":"Case Data was submitted to CCD. The body payload returns the complete case back","schema":{"$ref":"#/definitions/CaseDetails"}}}}},"/casemaintenance/version/1/updateCase/{caseId}/{eventId}":{"post":{"tags":["ccd-controller"],"summary":"Updates case details","operationId":"updateCaseUsingPOST","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string","allowEmptyValue":false},{"name":"caseId","in":"path","description":"Unique identifier of the session that was submitted to CCD","required":false,"type":"string","allowEmptyValue":false},{"in":"body","name":"data","description":"The update event that requires the resubmission to CCD","required":true,"schema":{"type":"object"}},{"name":"eventId","in":"path","description":"Update Event Type Id","required":true,"type":"string","allowEmptyValue":false}],"responses":{"200":{"description":"A request to update the case details was sent to CCD. The body payload will return the latest version of the case after the update.","schema":{"$ref":"#/definitions/CaseDetails"}}}}}},"definitions":{"CaseDetails":{"type":"object","properties":{"callback_response_status":{"type":"string"},"case_data":{"type":"object"},"case_type_id":{"type":"string"},"created_date":{"type":"string","format":"date-time"},"id":{"type":"integer","format":"int64"},"jurisdiction":{"type":"string"},"last_modified":{"type":"string","format":"date-time"},"locked_by_user_id":{"type":"integer","format":"int32"},"security_classification":{"type":"string","enum":["PUBLIC","PRIVATE","RESTRICTED"]},"security_level":{"type":"integer","format":"int32"},"state":{"type":"string"}},"title":"CaseDetails"}}}
