From 43e2a7124f479915377de43b9e1f7c24477d3452 Mon Sep 17 00:00:00 2001 From: fhimpg <75040742+fhimpg@users.noreply.github.com> Date: Wed, 5 Jun 2024 10:49:50 +0200 Subject: [PATCH] Updated API (markdown) --- API.md | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/API.md b/API.md index a1b7144..07fa6e6 100644 --- a/API.md +++ b/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`