From 9b7b11cbb357deb5dd5485e425f84ce654bf2986 Mon Sep 17 00:00:00 2001 From: fhimpg <75040742+fhimpg@users.noreply.github.com> Date: Mon, 27 May 2024 13:26:37 +0200 Subject: [PATCH] Updated API (markdown) --- API.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/API.md b/API.md index 7cde234..a1b7144 100644 --- a/API.md +++ b/API.md @@ -482,6 +482,54 @@ Options: ```{"match":""}``` search for matching string value. +# metaget +Get extended metadata from entry + +`curl -s -d '{"token":"MYSECRETTOKEN"}' https://my.domain/v1/metaget/S1234 + +```json +{ + "success": 1, + "id": "S1234", + "tent": "2014-06-20 15:40:32", + "tcha": "2014-06-20 15:40:32", + "project": "99", + "user": "mike", + "type": "sample", + "ancestry": [ + "S1232", + "S1231" + ], + "descendants": [ + "S1235", + "S1236" + ], + "f0": "Test Entry", + "f1": "Mike", + "f2": "Entry for testing Rest API", + "f4": "Test, Rest, API", + "f5": "Comment", + "jasondata": null, + "parent": { + "id": "S1234", + "parent": "S1233", + "gen": "2" + }, + "childs": [ + { + "id": "S1234", + "parent": "S1235", + "gen": "3" + }, + { + "id": "S1234", + "parent": "S1236", + "gen": "3" + }, + ] +} +``` + # metadump Output all metadata you have access to.