{"swagger":"2.0","info":{"description":"Api Documentation","version":"1.0","title":"Api Documentation","termsOfService":"urn:tos","contact":{},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0"}},"host":"localhost:8080","basePath":"/","tags":[{"name":"drafts-controller","description":"Drafts Controller"}],"paths":{"/draftsapi/version/1":{"get":{"tags":["drafts-controller"],"summary":"Retrieves a financial remedy case draft","operationId":"retrieveDraftUsingGET","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"}],"responses":{"200":{"description":"A draft exists. The draft content is in the response body","schema":{"$ref":"#/definitions/JsonNode"}},"404":{"description":"Draft does not exist"}}},"put":{"tags":["drafts-controller"],"summary":"Saves a financial remedy case draft","operationId":"saveDraftUsingPUT","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"},{"in":"body","name":"data","description":"The financial remedy case draft","required":true,"schema":{"$ref":"#/definitions/JsonNode"}},{"name":"notificationEmail","in":"query","description":"The email address that will receive the notification that the draft has been saved","required":false,"type":"string"}],"responses":{"200":{"description":"OK"},"204":{"description":"Draft saved"}}},"delete":{"tags":["drafts-controller"],"summary":"Deletes a financial remedy case draft","operationId":"deleteDraftUsingDELETE","consumes":["application/json"],"produces":["*/*"],"parameters":[{"name":"Authorization","in":"header","description":"JWT authorisation token issued by IDAM","required":true,"type":"string"}],"responses":{"200":{"description":"OK"},"204":{"description":"The financial remedy case draft has been deleted successfully"}}}}},"definitions":{"JsonNode":{"type":"object","properties":{"array":{"type":"boolean"},"bigDecimal":{"type":"boolean"},"bigInteger":{"type":"boolean"},"binary":{"type":"boolean"},"boolean":{"type":"boolean"},"containerNode":{"type":"boolean"},"double":{"type":"boolean"},"float":{"type":"boolean"},"floatingPointNumber":{"type":"boolean"},"int":{"type":"boolean"},"integralNumber":{"type":"boolean"},"long":{"type":"boolean"},"missingNode":{"type":"boolean"},"nodeType":{"type":"string","enum":["ARRAY","BINARY","BOOLEAN","MISSING","NULL","NUMBER","OBJECT","POJO","STRING"]},"null":{"type":"boolean"},"number":{"type":"boolean"},"object":{"type":"boolean"},"pojo":{"type":"boolean"},"short":{"type":"boolean"},"textual":{"type":"boolean"},"valueNode":{"type":"boolean"}}}}}
