Updated API (markdown)

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

29
API.md

@ -483,9 +483,13 @@ Options:
# 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
{
@ -510,28 +514,17 @@ Get extended metadata from entry
"f4": "Test, Rest, API",
"f5": "Comment",
"jasondata": null,
"parent": {
"id": "S1234",
"parent": "S1233",
"gen": "2"
},
"parent": "S1233",
"childs": [
{
"id": "S1234",
"parent": "S1235",
"gen": "3"
},
{
"id": "S1234",
"parent": "S1236",
"gen": "3"
},
"D1895",
"D1899",
"D1901"
]
}
```
# 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`