reglement-publish-service
v1.1.0
Published
This service can be used to publish and invalidate regulatory attachments
Downloads
4
Readme
reglement-publish-service
This service can be used to publish and invalidate regulatory attachments
Endpoints
It provides 4 endpoints
/publish/regulatory-attachment/:uuid
It's a taskified enpoint that published the regulatory attachment with the provided uuid, the published info will have the following structure:
$reglementUri ext:publishedVersion ?publishedContainer.
?publishedContainer ext:currentVersion ?currentVersion.
?currentVersion a ext:PublishedRegulatoryAttachment;
ext:content ?file;
pav:createdOn ?date;
pav:lastUpdateOn ?date;
pav:previousVersion ?previousVersion;
ext:container ?publishedContainer.
Being ?file the rdfa structure of a file per the file-service documentation
/publication-tasks/:id
This endpoint checks the state of a task created by the previous endpoint
/preview/regulatory-attachment/:uuid
Previews a published regulatory attachment, it just returns a json with the content of said regulatory attachment
/invalidate/regulatory-attachment/:uuid
Invalidates the specified regulatory attachment, it just adds a schema:validThrough
property with todays date to indicate that the publication is no longer valid
Docker Compose Example
publisher:
image: lblod/reglement-publish-service:0.0.1
links:
- database:database
volumes:
- ./data/files/:/share/