Skip to content

Commit aa8848b

Browse files
authored
Merge pull request #611 from hubmapconsortium/Derek-Furst/update-siblings
Derek furst/update siblings
2 parents 9f22eac + ef00b6c commit aa8848b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

entity-api-spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ paths:
14921492
description: The target entity could not be found
14931493
'500':
14941494
description: Internal error
1495-
'/siblings/{id}':
1495+
'/entities/{id}/siblings':
14961496
get:
14971497
summary: Get the siblings list for an Entity. The siblings have the same direct ancestor. This list does not include all nodes whom have common ancestors, only the direct ancestor.
14981498
parameters:

src/app.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ def get_children(id):
17191719
The gateway treats this endpoint as public accessible
17201720
17211721
Result filtering based on query string
1722-
For example: /siblings/<id>?property=uuid
1722+
For example: /entities/<id>/siblings?property=uuid
17231723
17241724
Parameters
17251725
----------
@@ -1731,7 +1731,7 @@ def get_children(id):
17311731
json
17321732
A list of all the siblings of the target entity
17331733
"""
1734-
@app.route('/siblings/<id>', methods = ['GET'])
1734+
@app.route('/entities/<id>/siblings', methods = ['GET'])
17351735
def get_siblings(id):
17361736
final_result = []
17371737

@@ -1815,7 +1815,11 @@ def get_siblings(id):
18151815
'title',
18161816
'next_revision_uuid',
18171817
'previous_revision_uuid',
1818-
'associated_collection'
1818+
'associated_collection',
1819+
'creation_action',
1820+
'local_directory_rel_path',
1821+
'previous_revision_uuids',
1822+
'next_revision_uuids'
18191823
]
18201824

18211825
complete_entities_list = schema_manager.get_complete_entities_list(token, sibling_list, properties_to_skip)

0 commit comments

Comments
 (0)