Skip to content

Commit

Permalink
Change dwas import route to POST for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
willdunklin committed Oct 17, 2023
1 parent 3d06350 commit c959266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sources/dicom/large_image_source_dicom/assetstore/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DICOMwebAssetstoreResource(Resource):
def __init__(self):
super().__init__()
self.resourceName = 'dicomweb_assetstore'
self.route('PUT', (':id', 'import'), self.importData)
self.route('POST', (':id', 'import'), self.importData)

def _importData(self, assetstore, params):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { restRequest } from '@girder/core/rest';
AssetstoreModel.prototype.dicomwebImport = function (params) {
return restRequest({
url: 'dicomweb_assetstore/' + this.get('_id') + '/import',
type: 'PUT',
type: 'POST',
data: params,
error: null
}).done(() => {
Expand Down

0 comments on commit c959266

Please sign in to comment.