Skip to content

Commit

Permalink
allow object_id for options
Browse files Browse the repository at this point in the history
  • Loading branch information
willronchetti committed Aug 28, 2024
1 parent b83041f commit 79f0606
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicsnovault"
version = "11.21.1.0b2"
version = "11.21.1.0b3"
description = "Storage support for 4DN Data Portals."
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion snovault/drs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

DRS_VERSION_1 = 'v1'
DRS_PREFIX_V1 = f'ga4gh/drs/{DRS_VERSION_1}'
DRS_OBJECT_OPTIONS = DRS_PREFIX_V1 + '/options'
DRS_OBJECT_OPTIONS = DRS_PREFIX_V1 + '/options/{object_id}'
DRS_OBJECT_GET = DRS_PREFIX_V1 + '/objects/{object_id}'
DRS_OBJECT_GET_ACCESS_URL = DRS_PREFIX_V1 + '/objects/{object_id}/access/{access_id}'
DRS_OBJECT_GET_ACCESSS_URL_SLASH = DRS_PREFIX_V1 + '/objects/{object_id}/access/'
Expand Down
2 changes: 1 addition & 1 deletion snovault/tests/test_drs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TestDRSAPI:

def test_drs_options(self, testapp):
""" Tests that the options endpoint returns 204 """
res = testapp.options('/ga4gh/drs/v1/options', headers={'Content-Type': 'application/json'})
res = testapp.options('/ga4gh/drs/v1/options/blah', headers={'Content-Type': 'application/json'})
assert res.status_code == 204

def test_drs_get_object(self, testapp, testing_download): # noQA fixture
Expand Down

0 comments on commit 79f0606

Please sign in to comment.