Skip to content

Commit cf0fdfb

Browse files
committed
Merge branch 'main' of https://github.com/hubmapconsortium/entity-api into dev-integrate
2 parents e6e92f9 + 35be572 commit cf0fdfb

File tree

1 file changed

+23
-126
lines changed

1 file changed

+23
-126
lines changed

entity-api-spec.yaml

Lines changed: 23 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,6 +2380,29 @@ paths:
23802380
description: The target entity could not be found
23812381
'500':
23822382
description: Internal error
2383+
'/entities/{id}/flush-cache':
2384+
delete:
2385+
summary: "Delete the cached data from Memcached for a given entity, HuBMAP-Read access is required in AWS API Gateway"
2386+
parameters:
2387+
- name: id
2388+
in: path
2389+
description: The unique identifier of entity. This identifier can be either an HuBMAP ID (e.g. HBM123.ABCD.456) or UUID
2390+
required: true
2391+
schema:
2392+
type: string
2393+
responses:
2394+
'200':
2395+
description: A confirmation message upon successful operation
2396+
'400':
2397+
description: Invalid or misformatted entity identifier
2398+
'401':
2399+
description: The user's token has expired or the user did not supply a valid token
2400+
'403':
2401+
description: The user is not authorized to query the provenance of the given entity.
2402+
'404':
2403+
description: The target entity could not be found
2404+
'500':
2405+
description: Internal error
23832406
'/entities/{id}/instanceof/{type}':
23842407
get:
23852408
summary: Determines if the Entity with id is an instance of type
@@ -2826,93 +2849,6 @@ paths:
28262849
description: The target dataset could not be found
28272850
'500':
28282851
description: Internal error
2829-
'/datasets/prov-info':
2830-
get:
2831-
summary: 'returns ALL provenance information for ALL datasets in a default table/tsv format or optionally a json format when an optional ?format=json parameter is provided'
2832-
parameters:
2833-
- name: format
2834-
in: query
2835-
description: "A case insensitive string. Any value besides 'json' will have no effect. If the string is 'json', provenance info will be returned as a json. Otherwise, it will be returned as a tsv file"
2836-
required: false
2837-
schema:
2838-
type: string
2839-
enum: ['json', 'tsv']
2840-
- name: group_uuid
2841-
in: query
2842-
description: The uuid of the group
2843-
required: false
2844-
schema:
2845-
type: string
2846-
- name: has_rui_info
2847-
in: query
2848-
description: A case insensitive string. Any value besides true or false will cause a 400 exception.
2849-
required: false
2850-
schema:
2851-
type: string
2852-
enum: ['true', 'false']
2853-
- name: organ
2854-
in: query
2855-
description: Case insensitive string for 2 character organ code. Values must be present on organ yaml or a 400 exception is raised
2856-
required: false
2857-
schema:
2858-
type: string
2859-
- name: dataset_status
2860-
in: query
2861-
description: Case insensitive string indicating the current status of a dataset
2862-
required: false
2863-
schema:
2864-
type: string
2865-
enum: ['QA', 'New', 'Published']
2866-
responses:
2867-
'200':
2868-
description: all provenance information for every dataset in the database either as a json list or as a tsv file to be downloaded
2869-
content:
2870-
text/tsv:
2871-
schema:
2872-
type: string
2873-
application/json:
2874-
schema:
2875-
type: object
2876-
examples:
2877-
provinfoexample:
2878-
summary: An example of a prov-info response
2879-
value:
2880-
dataset_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
2881-
dataset_hubmap_id: 'HBM123.ABCD.456'
2882-
dataset_status: 'Published'
2883-
dataset_group_name: 'University TMC'
2884-
dataset_group_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
2885-
dataset_date_time_created: 1710243867000
2886-
dataset_created_by_email: '[email protected]'
2887-
dataset_date_time_modified: 1710243867000
2888-
dataset_modified_by_email: '[email protected]'
2889-
dataset_lab_id: '12-345_lymph-node_R2'
2890-
dataset_data_types: ['CODEX']
2891-
dataset_portl_url: 'https://portal.hubmapconsortium.org/browse/dataset/abcd1234ef56gh78ij90klmnop123456'
2892-
first_sample_hubmap_id: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2893-
first_sample_submission_id: ['AB1234']
2894-
first_sample_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2895-
first_sample_portal_url: ['https://portal.hubmapconsortium.org/browse/sample/abcd1234ef56gh78ij90klmnop123456']
2896-
organ_hubmap_id: ['HBM123.ABCD.456']
2897-
organ_submission_id: ['AB1234']
2898-
organ_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2899-
organ_type: ['AO']
2900-
donor_hubmap_id: ['HBM123.ABCD.456']
2901-
donor:submission_id: ['AB1234']
2902-
donor_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2903-
donor_group_name: ['University TMC']
2904-
rui_location_hubmap_id: ['HBM123.ABCD.456']
2905-
rui_location_submission_id: ['AB1234']
2906-
rui_location_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2907-
sample_metadata_hubmap_id: ['HBM123.ABCD.456']
2908-
sample_metadata_submission_id: ['AB1234']
2909-
sample_metadata_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2910-
'401':
2911-
description: The user's token has expired or the user did not supply a valid token
2912-
'403':
2913-
description: THe user is not authorized to use this method
2914-
'500':
2915-
description: Internal error
29162852
'/datasets/{id}/prov-info':
29172853
get:
29182854
summary: 'returns aLL provenance information for a single dataset in a default table/tsv format or optionally a json format when an optional ?format=json parameter is provided'
@@ -3053,45 +2989,6 @@ paths:
30532989
- 'abcd1234-ef56-gh78-ij90-klmnop123456'
30542990
'500':
30552991
description: Internal error
3056-
'/samples/prov-info':
3057-
get:
3058-
summary: 'returns all provenance information for a each sample in a json format'
3059-
parameters:
3060-
- name: group_uuid
3061-
in: query
3062-
description: The uuid of the group
3063-
required: false
3064-
schema:
3065-
type: string
3066-
responses:
3067-
'200':
3068-
description: all provenance information for the every sample given as a json list
3069-
content:
3070-
application/json:
3071-
schema:
3072-
type: object
3073-
examples:
3074-
samplesprovinfoexample:
3075-
value:
3076-
sample_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3077-
sample_group_name: 'University TMC'
3078-
sample_created_by_email: '[email protected]'
3079-
lab_tissue_sample_id: '12-345 Aorta AA-1'
3080-
sample_ancestor_id: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3081-
sample_ancestor_entity: 'Sample'
3082-
organ_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3083-
organ_type: 'AO'
3084-
donor_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3085-
sample_has_rui_info: True
3086-
sample_has_metadata: False
3087-
organ_has_metadata: True
3088-
donor_has_metadata: False
3089-
'401':
3090-
description: The user's token has expired or the user did not supply a valid token
3091-
'403':
3092-
description: THe user is not authorized to use this method
3093-
'500':
3094-
description: Internal error
30952992
'/datasets/unpublished':
30962993
get:
30972994
summary: returns information about all unpublished datasets in json or tsv format. Defaults to json

0 commit comments

Comments
 (0)