File tree Expand file tree Collapse file tree 2 files changed +54
-6
lines changed
Expand file tree Collapse file tree 2 files changed +54
-6
lines changed Original file line number Diff line number Diff line change @@ -3140,3 +3140,46 @@ paths:
31403140 description : The given dataset is unpublished and the user does not have the authorization to view it.
31413141 ' 500 ' :
31423142 description : Internal error
3143+ ' /entities/batch-ids ' :
3144+ post :
3145+ summary : Retrieve the HuBMAP ID and UUID for each entity id provided in a list.
3146+ requestBody :
3147+ required : true
3148+ content :
3149+ application/json :
3150+ schema :
3151+ type : array
3152+ description : List of entity identifiers (HuBMAP IDs or UUIDs)
3153+ items :
3154+ type : string
3155+ responses :
3156+ ' 200 ' :
3157+ description : Mapping of input entity identifiers to their resolved HuBMAP ID and UUID. If no items are found, will simply return empty.
3158+ content :
3159+ application/json :
3160+ schema :
3161+ type : object
3162+ additionalProperties :
3163+ type : object
3164+ properties :
3165+ hubmap_id :
3166+ type : string
3167+ description : Canonical HuBMAP ID for the entity
3168+ uuid :
3169+ type : string
3170+ format : uuid
3171+ description : UUID for the entity
3172+ required :
3173+ - hubmap_id
3174+ - uuid
3175+ examples :
3176+ batchidsexample :
3177+ value :
3178+ HBM123.ABCD.456 :
3179+ hubmap_id : " HBM123.ABCD.456"
3180+ uuid : " a8098c1a-f86e-11da-bd1a-00112444be1e"
3181+ abcd1234-ef56-gh78-ij90-klmnop123456 :
3182+ hubmap_id : " HBM987.WXYZ.321"
3183+ uuid : " abcd1234-ef56-gh78-ij90-klmnop123456"
3184+ ' 500 ' :
3185+ description : Internal Error
Original file line number Diff line number Diff line change @@ -4322,15 +4322,20 @@ def entity_bulk_update():
43224322"""
43234323Retrieve ids (uuid, hubmap_id) for a given id
43244324
4325- Parameters
4326- ----------
4327- id : str
4328- The HuBMAP ID (e.g. HBM123.ABCD.456) or UUID of target entity (Dataset/Sample)
4325+ Request Body
4326+ ------------
4327+ JSON array of entity identifiers (either uuids or HuBMAP IDs)
4328+
4329+ Example:
4330+ [
4331+ "HBM123.ABCD.456",
4332+ "a1234b56-c78d-90de-fg1h-23456789i01j"
4333+ ]
43294334
43304335Returns
43314336-------
4332- json array
4333- Each item in the array is a json object containing the uuid and hubmap_id for the given entity.
4337+ json
4338+ JSON object keyed by the entity identifier. Each value is a mapping containing the HuBMAP ID and UUID for that entity
43344339"""
43354340@app .route ('/entities/batch-ids' , methods = ['POST' ])
43364341def get_batch_ids ():
You can’t perform that action at this time.
0 commit comments