Skip to content

Commit

Permalink
[MODINVOSTO-187] Add API and _timer interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Saba-Zedginidze-EPAM committed Nov 4, 2024
1 parent aa606e7 commit 32830d9
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
14 changes: 14 additions & 0 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
17 changes: 17 additions & 0 deletions ramls/audit-outbox.raml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 32830d9

Please sign in to comment.