aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-24 17:04:36 +0300
committerMunyoki Kilyungi2023-10-24 17:04:36 +0300
commit0455147e4dac1a66e116c8718914eb7f5db95ec1 (patch)
tree4a93d62a1f2e3e9221dd0d0b6f3f67cb7f4183ca /api
parent291a0eab8d5585e599d97a28c4b5e1a7653b7cfc (diff)
downloadgn-docs-0455147e4dac1a66e116c8718914eb7f5db95ec1.tar.gz
Update GN3 API documentation.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'api')
-rw-r--r--api/GN3-REST-API-Implementation.md84
1 files changed, 84 insertions, 0 deletions
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.