diff --git a/descriptors/ModuleDescriptor-template.json b/descriptors/ModuleDescriptor-template.json index 3d39e07e..ec24f8c6 100644 --- a/descriptors/ModuleDescriptor-template.json +++ b/descriptors/ModuleDescriptor-template.json @@ -338,6 +338,20 @@ "permissionsRequired": ["batch-group-storage.batch-groups.item.delete"] } ] + }, + { + "id": "_timer", + "version": "1.0", + "interfaceType": "system", + "handlers": [ + { + "methods": ["POST"], + "pathPattern": "/invoice-storage/audit-outbox/process", + "modulePermissions": [], + "unit": "minute", + "delay": "30" + } + ] } ], "permissionSets": [ diff --git a/ramls/audit-outbox.raml b/ramls/audit-outbox.raml new file mode 100644 index 00000000..c9f7643c --- /dev/null +++ b/ramls/audit-outbox.raml @@ -0,0 +1,17 @@ +#%RAML 1.0 +title: Audit outbox API +version: v1.0 +protocols: [ HTTP, HTTPS ] +baseUri: http://github.com/folio-org/mod-invoice-storage + +documentation: + - title: Audit outbox API + content: This API is intended for internal use only by the Timer interface + +types: + outbox-event-log: !include acq-models/mod-orders-storage/schemas/outbox_event_log.json + +/invoice-storage/audit-outbox: + /process: + post: + description: Read audit events from DB and send them to Kafka