You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: entity-api-spec.yaml
+87Lines changed: 87 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1962,6 +1962,93 @@ paths:
1962
1962
description: The target dataset could not be found
1963
1963
'500':
1964
1964
description: Internal error
1965
+
'/datasets/{id}/organs':
1966
+
get:
1967
+
summary: Retrieve a list of all of the smples that are organs that are associated with the dataset id
1968
+
parameters:
1969
+
- name: id
1970
+
in: path
1971
+
description: The unique identifier of entity. This identifier can be either an HuBMAP ID (e.g. HBM123.ABCD.456) or UUID
1972
+
required: true
1973
+
schema:
1974
+
type: string
1975
+
responses:
1976
+
'200':
1977
+
description: A list of entity_type == Sample with sample_category == organ associated with the dataset id
1978
+
content:
1979
+
application/json:
1980
+
schema:
1981
+
type: array
1982
+
items:
1983
+
$ref: '#/components/schemas/Sample'
1984
+
'400':
1985
+
description: Invalid or misformatted entity identifier, or the given entity is not a Dataset
1986
+
'401':
1987
+
description: The user's token has expired or the user did not supply a valid token
1988
+
'403':
1989
+
description: The user is not authorized to query the revision number of the given dataset.
1990
+
'404':
1991
+
description: The target dataset could not be found
1992
+
'500':
1993
+
description: Internal error
1994
+
'/datasets/{id}/samples':
1995
+
get:
1996
+
summary: Retrieve a list of all of the samples that are not organs that are associated with the dataset id
1997
+
parameters:
1998
+
- name: id
1999
+
in: path
2000
+
description: The unique identifier of entity. This identifier can be either an HuBMAP ID (e.g. HBM123.ABCD.456) or UUID
2001
+
required: true
2002
+
schema:
2003
+
type: string
2004
+
responses:
2005
+
'200':
2006
+
description: A list of entity_type == Sample with sample_category != organ associated with the dataset id
2007
+
content:
2008
+
application/json:
2009
+
schema:
2010
+
type: array
2011
+
items:
2012
+
$ref: '#/components/schemas/Sample'
2013
+
'400':
2014
+
description: Invalid or misformatted entity identifier, or the given entity is not a Dataset
2015
+
'401':
2016
+
description: The user's token has expired or the user did not supply a valid token
2017
+
'403':
2018
+
description: The user is not authorized to query the revision number of the given dataset.
2019
+
'404':
2020
+
description: The target dataset could not be found
2021
+
'500':
2022
+
description: Internal error
2023
+
'/datasets/{id}/donors':
2024
+
get:
2025
+
summary: Retrieve a list of all of the donors that are associated with the dataset id
2026
+
parameters:
2027
+
- name: id
2028
+
in: path
2029
+
description: The unique identifier of entity. This identifier can be either an HuBMAP ID (e.g. HBM123.ABCD.456) or UUID
2030
+
required: true
2031
+
schema:
2032
+
type: string
2033
+
responses:
2034
+
'200':
2035
+
description: A list of entity_type == Donor that are associated with the dataset id
2036
+
content:
2037
+
application/json:
2038
+
schema:
2039
+
type: array
2040
+
items:
2041
+
$ref: '#/components/schemas/Donor'
2042
+
'400':
2043
+
description: Invalid or misformatted entity identifier, or the given entity is not a Dataset
2044
+
'401':
2045
+
description: The user's token has expired or the user did not supply a valid token
2046
+
'403':
2047
+
description: The user is not authorized to query the revision number of the given dataset.
2048
+
'404':
2049
+
description: The target dataset could not be found
2050
+
'500':
2051
+
description: Internal error
1965
2052
'/datasets/{id}/retract':
1966
2053
put:
1967
2054
summary: 'Retracts a dataset after it has been published. Requires a json body with a single field {retraction_reason: string}. The dataset for the given id is modified to include this new retraction_reason field and sets the dataset property sub_status to Retracted. The complete modified dataset is returned. Requires that the dataset being retracted has already been published (dataset.status == Published. Requires a user token with membership in the HuBMAP-Data-Admin group otherwise then a 403 will be returned.'
0 commit comments