Stamps API
8 endpoints.
Get pages that contain at least one stamp in the archive
Section titled “Get pages that contain at least one stamp in the archive”Get pages that contain at least one stamp in the archive.
Path parameters
- idstringrequired
- ID of the archive.
Responses
200Success response
{
"result": [
""
]
}400Error response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.
Get the stamps linked to the page
Section titled “Get the stamps linked to the page”Get the stamps linked to the page.
Path parameters
- idstringrequired
- ID of the archive.
- indexintegerrequired
- Page of the archive.
Responses
200Success response
{
"result": [
{
"content": "Lorem ipsum dolore",
"position": "12,34"
}
]
}400Error response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.
Add a stamp annotation
Section titled “Add a stamp annotation”Add a new Stamp to the page at the given coordinates.
Path parameters
- idstringrequired
- ID of the archive.
- indexintegerrequired
- Page of the archive.
Query parameters
- contentstringoptional
- Text of the stamp.
- positionstringoptional
- Position of the stamp in the page.
Responses
200Success response
{
"operation": "add_stamp",
"stamp_id": "",
"success": 0
}400Error response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}This endpoint needs an administrator token — a guest (read-only) token is refused by the server.
Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.
Delete Stamp
Section titled “Delete Stamp”Remove a stamp from an Archive.
Path parameters
- idstringrequired
- ID of the stamp.
Responses
200Success response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}400Error response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}423The Stamp is currently locked for modification
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}This endpoint needs an administrator token — a guest (read-only) token is refused by the server.
Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.
Get Stamp
Section titled “Get Stamp”Get a stamp from an Archive.
Path parameters
- idstringrequired
- ID of the stamp.
Responses
200Success response
{
"content": "Lorem ipsum dolore",
"position": "12,34"
}400Error response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}423The Stamp is currently locked for modification
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.
Update Stamp
Section titled “Update Stamp”Update a stamp from an Archive.
Path parameters
- idstringrequired
- ID of the stamp.
Query parameters
- contentstringoptional
- Text of the stamp.
- positionstringoptional
- Position of the stamp in the page.
Responses
200Success response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}400Error response
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}423The Stamp is currently locked for modification
{
"error": "",
"operation": "",
"success": 0,
"successMessage": ""
}This endpoint needs an administrator token — a guest (read-only) token is refused by the server.
Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.
tank_stamps_by_page
Section titled “tank_stamps_by_page”Not yet described in this reference. This endpoint is listed because the server registers it, but its request and response shapes have not been written down yet.
The handler is tank_stamps_by_page in crates/lanrurugi-api/src/stamps.rs:58.
Responses
200The endpoint responded. Its exact shape is not documented yet — see the handler at crates/lanrurugi-api/src/stamps.rs:52.
This response carries no example body.
Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.
tank_add_stamp
Section titled “tank_add_stamp”Not yet described in this reference. This endpoint is listed because the server registers it, but its request and response shapes have not been written down yet.
The handler is tank_add_stamp in crates/lanrurugi-api/src/stamps.rs:72.
Responses
200The endpoint responded. Its exact shape is not documented yet — see the handler at crates/lanrurugi-api/src/stamps.rs:52.
This response carries no example body.
This endpoint needs an administrator token — a guest (read-only) token is refused by the server.
Request failed — Usual causes: the instance address is wrong or unreachable; cross-origin access is not enabled on the instance; or this page is HTTPS while the instance is plain HTTP on a LAN address, which the browser blocks as mixed content. “Copy as cURL” above sends the same request from a terminal.
Your own instance address. Requests go from this browser straight to it.