From 0455147e4dac1a66e116c8718914eb7f5db95ec1 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 24 Oct 2023 17:04:36 +0300 Subject: Update GN3 API documentation. Signed-off-by: Munyoki Kilyungi --- api/GN3-REST-API-Implementation.md | 84 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) (limited to 'api') diff --git a/api/GN3-REST-API-Implementation.md b/api/GN3-REST-API-Implementation.md index c7e6a0e..4f02bf0 100644 --- a/api/GN3-REST-API-Implementation.md +++ b/api/GN3-REST-API-Implementation.md @@ -377,6 +377,90 @@ Search datasets based of it's title. curl "localhost:8080/api/metadata/datasets/search/BXD?page=2&limit=3" ``` +Example Result + +``` +{ + "@context": { + "classifiedUnder": "xkos:classifiedUnder", + "currentPage": "ex:currentPage", + "data": "@graph", + "dataset": "rdfs:label", + "dct": "http://purl.org/dc/terms/", + "ex": "http://example.org/stuff/1.0/", + "id": "@id", + "inbredSet": "ex:belongsToInbredSet", + "pages": "ex:totalCount", + "rdfs": "http://www.w3.org/2000/01/rdf-schema#", + "result": "ex:result", + "resultItem": "ex:resultType", + "results": "ex:items", + "title": "dct:title", + "type": "@type", + "xkos": "http://rdf-vocabulary.ddialliance.org/xkos#" + }, + "data": [ + { + "currentPage": 2, + "id": "ex:result", + "pages": 118, + "results": [ + { + "dataset": "BR_U_0304_DPMMR", + "inbredSet": "BXD Family" + }, + { + "dataset": "Br_U_0303_M", + "inbredSet": "BXD Family" + }, + { + "dataset": "BR_M2_1106_R", + "inbredSet": "BXD Family", + "title": "Candidate genes and their regulatory elements: alcohol preference and tolerance" + }, + { + "dataset": "BR_M2_1106_R", + "inbredSet": "BXD Family", + "title": "Candidate genes and their regulatory elements: alcohol preference and tolerance" + }, + { + "dataset": "BR_M2_1106_R", + "inbredSet": "BXD Family", + "title": "Candidate genes and their regulatory elements: alcohol preference and tolerance" + }, + { + "classifiedUnder": "Phenotype", + "dataset": "B6D2RIPublish", + "inbredSet": "BXD Aged Hippocampus", + "title": "BXD Aged Hippocampus eQTL (Dresden UTHSC 2015)" + }, + { + "dataset": "Br_U_0303_M", + "inbredSet": "BXD Family" + }, + { + "dataset": "BR_M2_1106_R", + "inbredSet": "BXD Family", + "title": "Candidate genes and their regulatory elements: alcohol preference and tolerance" + }, + { + "classifiedUnder": "Phenotype", + "dataset": "B6D2RIPublish", + "inbredSet": "BXD Aged Hippocampus", + "title": "BXD Aged Hippocampus eQTL (Dresden UTHSC 2015)" + }, + { + "dataset": "Br_U_0303_M", + "inbredSet": "BXD Family" + } + ], + "type": "resultItem" + } + ] +} + +``` + ## GET /metadata/publication/:name Get a publication given it's name. Name can be a pubmedId or a GN-specific identifier for unpublished work. -- cgit v1.2.3