This API provides backend support for the Summer LOD app.
🐋 Quick Docker image build:
docker buildx create --use
docker buildx build . --platform linux/amd64,linux/arm64,windows/amd64 -t vedph2020/summer-lod-api:1.0.1 -t vedph2020/summer-lod-api:latest --push(replace with the current version).
Docker run (or use the compose script):
docker run -d --name summer-lod-api -p 5275:8080 vedph2020/summer-lod-api:1.0.0The API is publicly accessible endpoints under CORS and uses JSON for both input and output.
🎯 POST xml/rendition: transform the received XML using the received XSLT.
🔼 Input:
{
"xml": "the XML code",
"xslt": "the XSLT 1.0 code"
}🔽 Output:
{
"result": "HTML code",
"error": "error message"
}When an error occurs, result is undefined and error has a value. Otherwise, result has a value and error is undefined.
🎯 POST xml/entities: parse the received XML TEI extracting entities from it. To make things quicker, this implies some assumptions about the TEI encoding of entities.
🔼 Input:
{
"xml": "the XML code",
}🔽 Output:
{
"entities": [
{
"ids": [],
"type": "type: person organization place",
"names": [],
"links": [],
"description": "..."
}
],
"error": "error message"
}On return, error is set instead of entities in case of errors. Entities have at least 1 ID, 1 name and a type. Other data are optional.
🎯 POST xml/prettify: prettify the received XML.
🔼 Input:
{
"xml": "the XML code",
}🔽 Output:
{
"xml": "prettified XML",
"error": "error message"
}🎯 POST xml/uglify: uglify the received XML.
🔼 Input:
{
"xml": "the XML code",
}🔽 Output:
{
"xml": "uglified XML",
"error": "error message"
}- 2026-03-31: updated packages.
- 2026-02-13:
- updated .NET and packages.
- updated Docker script.
- 2024-09-14: updated packages.
- 2024-06-25: updated packages.
- 2024-06-18: fixed typo in entities parser.
- 2024-06-10: minor changes.
- 2024-05-24: updated packages.