Skip to content

Commit 4238a8f

Browse files
authored
Merge pull request #822 from hubmapconsortium/yuanzhou-patch-1
Remove `/datasets/prov-info` and `/samples/prov-info`
2 parents 8860dee + eaeb75b commit 4238a8f

1 file changed

Lines changed: 0 additions & 126 deletions

File tree

entity-api-spec.yaml

Lines changed: 0 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -2824,93 +2824,6 @@ paths:
28242824
description: The target dataset could not be found
28252825
'500':
28262826
description: Internal error
2827-
'/datasets/prov-info':
2828-
get:
2829-
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'
2830-
parameters:
2831-
- name: format
2832-
in: query
2833-
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"
2834-
required: false
2835-
schema:
2836-
type: string
2837-
enum: ['json', 'tsv']
2838-
- name: group_uuid
2839-
in: query
2840-
description: The uuid of the group
2841-
required: false
2842-
schema:
2843-
type: string
2844-
- name: has_rui_info
2845-
in: query
2846-
description: A case insensitive string. Any value besides true or false will cause a 400 exception.
2847-
required: false
2848-
schema:
2849-
type: string
2850-
enum: ['true', 'false']
2851-
- name: organ
2852-
in: query
2853-
description: Case insensitive string for 2 character organ code. Values must be present on organ yaml or a 400 exception is raised
2854-
required: false
2855-
schema:
2856-
type: string
2857-
- name: dataset_status
2858-
in: query
2859-
description: Case insensitive string indicating the current status of a dataset
2860-
required: false
2861-
schema:
2862-
type: string
2863-
enum: ['QA', 'New', 'Published']
2864-
responses:
2865-
'200':
2866-
description: all provenance information for every dataset in the database either as a json list or as a tsv file to be downloaded
2867-
content:
2868-
text/tsv:
2869-
schema:
2870-
type: string
2871-
application/json:
2872-
schema:
2873-
type: object
2874-
examples:
2875-
provinfoexample:
2876-
summary: An example of a prov-info response
2877-
value:
2878-
dataset_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
2879-
dataset_hubmap_id: 'HBM123.ABCD.456'
2880-
dataset_status: 'Published'
2881-
dataset_group_name: 'University TMC'
2882-
dataset_group_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
2883-
dataset_date_time_created: 1710243867000
2884-
dataset_created_by_email: 'janedoe@example.com'
2885-
dataset_date_time_modified: 1710243867000
2886-
dataset_modified_by_email: 'janedoe@example.com'
2887-
dataset_lab_id: '12-345_lymph-node_R2'
2888-
dataset_data_types: ['CODEX']
2889-
dataset_portl_url: 'https://portal.hubmapconsortium.org/browse/dataset/abcd1234ef56gh78ij90klmnop123456'
2890-
first_sample_hubmap_id: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2891-
first_sample_submission_id: ['AB1234']
2892-
first_sample_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2893-
first_sample_portal_url: ['https://portal.hubmapconsortium.org/browse/sample/abcd1234ef56gh78ij90klmnop123456']
2894-
organ_hubmap_id: ['HBM123.ABCD.456']
2895-
organ_submission_id: ['AB1234']
2896-
organ_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2897-
organ_type: ['AO']
2898-
donor_hubmap_id: ['HBM123.ABCD.456']
2899-
donor:submission_id: ['AB1234']
2900-
donor_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2901-
donor_group_name: ['University TMC']
2902-
rui_location_hubmap_id: ['HBM123.ABCD.456']
2903-
rui_location_submission_id: ['AB1234']
2904-
rui_location_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2905-
sample_metadata_hubmap_id: ['HBM123.ABCD.456']
2906-
sample_metadata_submission_id: ['AB1234']
2907-
sample_metadata_uuid: ['abcd1234-ef56-gh78-ij90-klmnop123456']
2908-
'401':
2909-
description: The user's token has expired or the user did not supply a valid token
2910-
'403':
2911-
description: THe user is not authorized to use this method
2912-
'500':
2913-
description: Internal error
29142827
'/datasets/{id}/prov-info':
29152828
get:
29162829
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'
@@ -3051,45 +2964,6 @@ paths:
30512964
- 'abcd1234-ef56-gh78-ij90-klmnop123456'
30522965
'500':
30532966
description: Internal error
3054-
'/samples/prov-info':
3055-
get:
3056-
summary: 'returns all provenance information for a each sample in a json format'
3057-
parameters:
3058-
- name: group_uuid
3059-
in: query
3060-
description: The uuid of the group
3061-
required: false
3062-
schema:
3063-
type: string
3064-
responses:
3065-
'200':
3066-
description: all provenance information for the every sample given as a json list
3067-
content:
3068-
application/json:
3069-
schema:
3070-
type: object
3071-
examples:
3072-
samplesprovinfoexample:
3073-
value:
3074-
sample_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3075-
sample_group_name: 'University TMC'
3076-
sample_created_by_email: 'janedoe@example.com'
3077-
lab_tissue_sample_id: '12-345 Aorta AA-1'
3078-
sample_ancestor_id: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3079-
sample_ancestor_entity: 'Sample'
3080-
organ_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3081-
organ_type: 'AO'
3082-
donor_uuid: 'abcd1234-ef56-gh78-ij90-klmnop123456'
3083-
sample_has_rui_info: True
3084-
sample_has_metadata: False
3085-
organ_has_metadata: True
3086-
donor_has_metadata: False
3087-
'401':
3088-
description: The user's token has expired or the user did not supply a valid token
3089-
'403':
3090-
description: THe user is not authorized to use this method
3091-
'500':
3092-
description: Internal error
30932967
'/datasets/unpublished':
30942968
get:
30952969
summary: returns information about all unpublished datasets in json or tsv format. Defaults to json

0 commit comments

Comments
 (0)