Skip to content

SBU-BMI/PathDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1e59c60 · Nov 8, 2023
Oct 31, 2023
May 3, 2019
Nov 19, 2018
Sep 20, 2022
Oct 31, 2023
Nov 11, 2019
Sep 4, 2019
Sep 19, 2022
Feb 28, 2020
Jun 18, 2019
Jul 2, 2019
Oct 31, 2023
Aug 22, 2019
Apr 13, 2020
Sep 20, 2022
Apr 14, 2020
Sep 5, 2019
Sep 5, 2019

Repository files navigation

QuIP - PathDB

Building:

git clone https://github.com/SBU-BMI/PathDB.git

cd PathDB

docker build -t quip_pathdb:1.0 .

Running:

docker run --name quip_pathdb --net=quip_nw --restart unless-stopped -itd -p 80:80 quip_pathdb:1.0

Using the REST API

Examples:

this will return metadata on a sample uploaded image in prototype. http auth will work

  1. to use JWT on REST:

a) get JWT at: https://vinculum.bmi.stonybrookmedicine.edu/jwt/token

b) Construct HTTP GET request to https://vinculum.bmi.stonybrookmedicine.edu/node/6?_format=json

c) add Authorization Bearer <insert JWT> from (b) header to request

d) send

Results:

failed JWT and Http auth yields 403 with: json response

{"message": "Internal Server Error"}

success yields 200 response code and json payload containing the metadata for node.

Interfaces: http://yourhost.com/idlookup/CollectionName/studyid/subjectid/imageid ==> returns singular entry http://yourhost.com/idmap/CollectionName ==> returns all CollectionName/studyid/subjectid/imageid and corresponding PathDBIds for a particular collection