{"openapi":"3.1.0","info":{"description":"Enforcement API","license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"title":"Enforcement API","version":"v0.0.1"},"externalDocs":{"description":"README","url":"https://github.com/hmcts/enforcement-api"},"servers":[{"url":"http://localhost","description":"Generated server url"}],"paths":{"/":{"get":{"operationId":"welcome","responses":{"200":{"content":{"*/*":{"schema":{"type":"string"}}},"description":"OK"}},"tags":["root-controller"]}},"/testing-support/create-sample-job":{"post":{"description":"Schedules a sample job that will execute after the specified delay in seconds","operationId":"createSampleJob","parameters":[{"in":"query","name":"delaySeconds","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"in":"header","name":"Authorization","required":false,"schema":{"type":"string","default":"DummyId"}},{"in":"header","name":"ServiceAuthorization","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"*/*":{"schema":{"type":"string"}}},"description":"Sample job scheduled successfully"},"500":{"content":{"*/*":{"schema":{"type":"string"}}},"description":"Failed to schedule sample job"}},"summary":"Create a sample DB Scheduler job","tags":["Testing Support"]}},"/testing-support/send-email":{"post":{"operationId":"sendEmail","parameters":[{"in":"header","name":"Authorization","required":false,"schema":{"type":"string","default":"DummyId"}},{"in":"header","name":"ServiceAuthorization","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailNotificationRequest"}}},"required":true},"responses":{"200":{"content":{"*/*":{"schema":{"$ref":"#/components/schemas/EmailNotificationResponse"}}},"description":"OK"}},"tags":["notify-controller"]}}},"components":{"schemas":{"EmailNotificationRequest":{"type":"object","properties":{"emailAddress":{"type":"string"},"emailReplyToId":{"type":"string"},"personalisation":{"type":"object","additionalProperties":{}},"reference":{"type":"string"},"templateId":{"type":"string"}}},"EmailNotificationResponse":{"type":"object","properties":{"notificationId":{"type":"string","format":"uuid"},"status":{"type":"string"},"taskId":{"type":"string"}}}}}}
