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
+26-18Lines changed: 26 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
openapi: 3.0.0
2
2
info:
3
3
description: 'The HuBMAP Entity API is a standard RESTful web service with create, update and read operations for the standard HuBMAP provenance graph entities.<br><br>'
4
-
version: 2.0.11
4
+
version: 2.0.14
5
5
title: HuBMAP Entity API
6
6
contact:
7
7
name: HuBMAP Help Desk
@@ -43,7 +43,7 @@ components:
43
43
description: "The name of the antibody."
44
44
channel_id:
45
45
type: string
46
-
description: "The assay specific identifier for the channel corresponding to the antibody."
46
+
description: "The assay specific identifier for the channel corresponding to the antibody."
47
47
conjugated_cat_number:
48
48
type: string
49
49
description: "An antibody may be conjugated to a fluorescent tag or a metal tag for detection. Conjugated antibodies may be purchased from commercial providers. Blank if not applicable."
@@ -191,7 +191,7 @@ components:
191
191
description: "The name of the file."
192
192
description:
193
193
type: string
194
-
description: "A description of the file."
194
+
description: "A description of the file. The Dataset.thumbnail_file does not have this file description."
195
195
file_uuid:
196
196
type: string
197
197
description: "The HuBMAP unique identifier for the file."
@@ -238,7 +238,6 @@ components:
238
238
type: string
239
239
readOnly: true
240
240
description: "The name of the person or process which authenticated when the object was last modified."
241
-
###### All other shared properties ######
242
241
entity_type:
243
242
type: string
244
243
readOnly: true
@@ -281,14 +280,14 @@ components:
281
280
type: array
282
281
items:
283
282
type: string
284
-
format: file_id
283
+
format: temp_file_id
285
284
description: 'List of temporary file ids with an optional description. Provide as a json array with an temp_file_id and description attribute for each element like {"files": [{"temp_file_id":"dzevgd6xjs4d5grmcp4n","description":"This is image file one"},{"temp_file_id":"yrahjadfhadf","description":"This is image file two"}]}'
286
285
image_files_to_remove:
287
286
writeOnly: true
288
287
type: array
289
288
items:
290
289
type: string
291
-
format: file_id
290
+
format: file_uuid
292
291
description: 'List of image files previously uploaded to delete. Provide as a json array of the file_uuids of the file like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
293
292
metadata:
294
293
type: object
@@ -367,7 +366,6 @@ components:
367
366
type: string
368
367
readOnly: true
369
368
description: "The name of the person or process which authenticated when the object was last modified."
370
-
###### All other shared properties ######
371
369
entity_type:
372
370
type: string
373
371
readOnly: true
@@ -447,7 +445,7 @@ components:
447
445
- snatacseq
448
446
- snrnaseq
449
447
- tissue_lysate
450
-
- wgs
448
+
- wgs
451
449
description: "A code representing the type of specimen. Must be one of the codes specified in: [tissue sample types](https://github.com/hubmapconsortium/search-api/blob/master/src/search-schema/data/definitions/enums/tissue_sample_types.yaml)"
452
450
specimen_type_other:
453
451
type: string
@@ -534,14 +532,14 @@ components:
534
532
type: array
535
533
items:
536
534
type: string
537
-
format: file_id
535
+
format: temp_file_id
538
536
description: 'List of temporary file ids with an optional description. Provide as a json array with an temp_file_id and description attribute for each element like {"files": [{"temp_file_id":"dzevgd6xjs4d5grmcp4n","description":"This is image file one"},{"temp_file_id":"yrahjadfhadf","description":"This is image file two"}]}'
539
537
image_files_to_remove:
540
538
writeOnly: true
541
539
type: array
542
540
items:
543
541
type: string
544
-
format: file_id
542
+
format: file_uuid
545
543
description: 'List of image files previously uploaded to delete. Provide as a json array of the file_uuids of the file like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
546
544
metadata_files:
547
545
readOnly: true
@@ -553,13 +551,13 @@ components:
553
551
type: array
554
552
items:
555
553
type: string
556
-
format: file_id
554
+
format: temp_file_id
557
555
description: 'List of temporary file ids with an optional description. Provide as a json array with an temp_file_id and description attribute for each element like {"files": [{"temp_file_id":"dzevgd6xjs4d5grmcp4n","description":"This is image file one"},{"temp_file_id":"yrahjadfhadf","description":"This is image file two"}]}'
558
556
metadata_files_to_remove:
559
557
type: array
560
558
items:
561
559
type: string
562
-
format: file_id
560
+
format: file_uuid
563
561
description: 'List of image files previously uploaded to delete. Provide as a json array of the file_uuids of the file like: ["232934234234234234234270c0ea6c51d604a850558ef2247d0b4", "230948203482234234234a57bfe9c056d08a0f8e6cd612baa3bfa"]'
564
562
Dataset:
565
563
type: object
@@ -604,7 +602,6 @@ components:
604
602
type: string
605
603
readOnly: true
606
604
description: "The name of the person or process which authenticated when the object was last modified."
607
-
###### All other shared properties ######
608
605
entity_type:
609
606
type: string
610
607
readOnly: true
@@ -770,6 +767,19 @@ components:
770
767
type: string
771
768
readOnly: true
772
769
description: "The uuid of next revision dataset"
770
+
thumbnail_file:
771
+
readOnly: true
772
+
description: 'The dataset thumbnail file detail. Stored in db as a stringfied json, e.g., {"filename": "thumbnail.jpg", "file_uuid": "c35002f9c3d49f8b77e1e2cd4a01803d"}'
773
+
thumbnail_file_to_add:
774
+
writeOnly: true
775
+
type: string
776
+
format: temp_file_id
777
+
description: 'Just a temporary file id. Provide as a json object with an temp_file_id like {"temp_file_id":"dzevgd6xjs4d5grmcp4n"}'
778
+
thumbnail_file_to_remove:
779
+
writeOnly: true
780
+
type: string
781
+
format: file_uuid
782
+
description: 'The thumbnail image file previously uploaded to delete. Provide as a string of the file_uuid like: "c35002f9c3d49f8b77e1e2cd4a01803d"'
773
783
Upload:
774
784
type: object
775
785
properties:
@@ -897,7 +907,6 @@ components:
897
907
type: string
898
908
readOnly: true
899
909
description: "The name of the person or process which authenticated when the object was last modified."
900
-
###### All other shared properties ######
901
910
entity_type:
902
911
type: string
903
912
readOnly: true
@@ -934,7 +943,7 @@ security:
934
943
paths:
935
944
'/entities/{id}':
936
945
get:
937
-
summary: Retrieve a provenance entity by id. Entity types of Donor, Sample and Datasets.
946
+
summary: Retrieve a provenance entity by id. Entity types of Donor, Sample and Datasets.
938
947
security:
939
948
- bearerAuth: []
940
949
parameters:
@@ -1322,7 +1331,7 @@ paths:
1322
1331
description: Internal error
1323
1332
'/doi/redirect/{id}':
1324
1333
get:
1325
-
summary: Redirect a request from a doi service
1334
+
summary: Redirect a request from a doi service
1326
1335
parameters:
1327
1336
- name: id
1328
1337
in: path
@@ -1414,5 +1423,4 @@ paths:
1414
1423
'404':
1415
1424
description: The target dataset could not be found
Copy file name to clipboardExpand all lines: src/schema/provenance_schema.yaml
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -342,7 +342,37 @@ ENTITIES:
342
342
immutable: true
343
343
description: "The uuid of next revision dataset"
344
344
on_read_trigger: get_next_revision_uuid
345
-
345
+
# No like image and metadata files handling for Donor/Sample
346
+
# Dataset has only one thumbnail file
347
+
thumbnail_file:
348
+
generated: true
349
+
type: json_string
350
+
description: "The dataset thumbnail file detail. Stored in db as a stringfied json, e.g., {'filename': 'thumbnail.jpg', 'file_uuid': 'dadasdasdadda'}"
351
+
# The updated_peripherally tag is a temporary measure to correctly handle any attributes
352
+
# which are potentially updated by multiple triggers
353
+
updated_peripherally: true
354
+
thumbnail_file_to_add:
355
+
type: json_string
356
+
transient: true
357
+
exposed: false
358
+
description: 'Just a temporary file id. Provide as a json object with an temp_file_id like {"temp_file_id":"dzevgd6xjs4d5grmcp4n"}'
359
+
before_create_trigger: commit_thumbnail_file
360
+
# This before_update_trigger with the same commit process can be used by ingest-api to update the dataset via PUT call
361
+
before_update_trigger: commit_thumbnail_file
362
+
# The updated_peripherally tag is a temporary measure to correctly handle any attributes
363
+
# which are potentially updated by multiple triggers
364
+
updated_peripherally: true
365
+
thumbnail_file_to_remove:
366
+
# This is only valid on update via a PUT request
367
+
type: string
368
+
transient: true
369
+
exposed: false
370
+
description: 'The thumbnail image file previously uploaded to delete. Provide as a string of the file_uuid like: "232934234234234234234270c0ea6c51d604a850558ef2247d0b4"'
371
+
before_update_trigger: delete_thumbnail_file
372
+
# The updated_peripherally tag is a temporary measure to correctly handle any attributes
373
+
# which are potentially updated by multiple triggers
0 commit comments