{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/timed-event":{"post":{"tags":["timed-event-controller"],"summary":"Scheduling / rescheduling timed event","operationId":"post","parameters":[{"name":"ServiceAuthorization","in":"header","description":"Keyword `Bearer` followed by a service-to-service token for a whitelisted micro-service","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}},"required":true},"responses":{"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}},"415":{"description":"Unsupported Media Type","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}},"403":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}},"400":{"description":"Bad Request","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}},"201":{"description":"Created TimeEvent object","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}}},"security":[{"Authorization":[]},{"ServiceAuthorization":[]}]}},"/testing-support/execute/jurisdiction/{jurisdiction}/case-type/{caseType}/cid/{cid}/event/{event}":{"post":{"tags":["testing-support-controller"],"summary":"Executing event in CCD","operationId":"execute","parameters":[{"name":"jurisdiction","in":"path","required":true,"schema":{"type":"string"}},{"name":"caseType","in":"path","required":true,"schema":{"type":"string"}},{"name":"cid","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"event","in":"path","required":true,"schema":{"type":"string"}},{"name":"ServiceAuthorization","in":"header","description":"Keyword `Bearer` followed by a service-to-service token for a whitelisted micro-service","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"responses":{"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"string"}}}},"504":{"description":"Gateway Timeout / re-thrown from dependent service","content":{"*/*":{"schema":{"type":"string"}}}},"200":{"description":"confirmation message","content":{"*/*":{"schema":{"type":"string"}}}},"422":{"description":"Unprocessable Entity / re-thrown from dependent service","content":{"*/*":{"schema":{"type":"string"}}}},"403":{"description":"Forbidden / re-thrown from dependent service","content":{"*/*":{"schema":{"type":"string"}}}},"404":{"description":"Not Found / re-thrown from dependent service","content":{"*/*":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request / re-thrown from dependent service","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/timed-event/{id}":{"get":{"tags":["timed-event-controller"],"summary":"Getting scheduled event","operationId":"get","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"ServiceAuthorization","in":"header","description":"Keyword `Bearer` followed by a service-to-service token for a whitelisted micro-service","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"responses":{"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}},"401":{"description":"Forbidden","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}},"404":{"description":"Not Found","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}},"200":{"description":"TimeEvent object","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}}},"security":[{"Authorization":[]},{"ServiceAuthorization":[]}]},"delete":{"tags":["timed-event-controller"],"operationId":"delete","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"ServiceAuthorization","in":"header","description":"Keyword `Bearer` followed by a service-to-service token for a whitelisted micro-service","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/TimedEvent"}}}}}}},"/testing-support/token":{"get":{"tags":["testing-support-controller"],"summary":"Generating system user token","operationId":"token","parameters":[{"name":"ServiceAuthorization","in":"header","description":"Keyword `Bearer` followed by a service-to-service token for a whitelisted micro-service","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"responses":{"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"string"}}}},"200":{"description":"Generated system user token","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/testing-support/system-user":{"get":{"tags":["testing-support-controller"],"summary":"Getting system user id","operationId":"systemUser","parameters":[{"name":"ServiceAuthorization","in":"header","description":"Keyword `Bearer` followed by a service-to-service token for a whitelisted micro-service","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"responses":{"500":{"description":"Internal Server Error","content":{"*/*":{"schema":{"type":"string"}}}},"200":{"description":"system user id","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/":{"get":{"tags":["root-controller"],"summary":"Welcome message for the Immigration & Asylum Timed Event Service","operationId":"welcome","parameters":[{"name":"ServiceAuthorization","in":"header","description":"Keyword `Bearer` followed by a service-to-service token for a whitelisted micro-service","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Welcome message","content":{"*/*":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"TimedEvent":{"type":"object","properties":{"id":{"type":"string"},"event":{"type":"string","enum":["requestRespondentEvidence","example","requestHearingRequirementsFeature","moveToPaymentPending","rollbackPayment","rollbackPaymentTimeout","rollbackPaymentTimeoutToPaymentPending","endAppealAutomatically","reTriggerWaTasks","recordRemissionReminder","sendPaymentReminderNotification","saveNotificationsToData","testTimedEventSchedule","unknown"]},"scheduledDateTime":{"type":"string","format":"date-time"},"jurisdiction":{"type":"string"},"caseType":{"type":"string"},"caseId":{"type":"integer","format":"int64"}}}}}}
