Updated API (markdown)

fhimpg 2024-06-05 10:49:50 +02:00
parent 9b7b11cbb3
commit 43e2a7124f

27
API.md

@ -483,9 +483,13 @@ Options:
# metaget # metaget
Get extended metadata from entry Get extended metadata from entry. Entries can be passed as a comma-separated list in the URL or as an array in a post request.
`curl -s -d '{"token":"MYSECRETTOKEN"}' https://my.domain/v1/metaget/S1234`
`curl -X POST -s -d '{"token":"MYSECRETTOKEN","ids":["D12","D34"}' https://my.domain/v1/metaget`
`curl -s -d '{"token":"MYSECRETTOKEN"}' https://my.domain/v1/metaget/S1234
```json ```json
{ {
@ -510,28 +514,17 @@ Get extended metadata from entry
"f4": "Test, Rest, API", "f4": "Test, Rest, API",
"f5": "Comment", "f5": "Comment",
"jasondata": null, "jasondata": null,
"parent": {
"id": "S1234",
"parent": "S1233", "parent": "S1233",
"gen": "2"
},
"childs": [ "childs": [
{ "D1895",
"id": "S1234", "D1899",
"parent": "S1235", "D1901"
"gen": "3"
},
{
"id": "S1234",
"parent": "S1236",
"gen": "3"
},
] ]
} }
``` ```
# metadump # metadump
Output all metadata you have access to. Output all metadata you have access to. This request can output a large amount of data and should be used with caution.
`curl -s -d '{"token":"MYSECRETTOKEN"}' https://my.domain/v1/metadump` `curl -s -d '{"token":"MYSECRETTOKEN"}' https://my.domain/v1/metadump`