Skip to content

Commit

Permalink
Update dwas importData route decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
willdunklin committed Oct 30, 2023
1 parent 1b11b3c commit af69411
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sources/dicom/large_image_source_dicom/assetstore/rest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import json

from girder.api import access
from girder.api.describe import Description, describeRoute
from girder.api.rest import Resource, boundHandler
from girder.api.describe import Description, autoDescribeRoute
from girder.api.rest import Resource
from girder.constants import TokenScope
from girder.exceptions import RestException
from girder.models.assetstore import Assetstore
Expand Down Expand Up @@ -75,8 +75,7 @@ def _importData(self, assetstore, params):
raise RestException(msg)

@access.admin(scope=TokenScope.DATA_WRITE)
@boundHandler
@describeRoute(
@autoDescribeRoute(
Description('Import references to DICOM objects from a DICOMweb server')
.modelParam('id', 'The ID of the assetstore representing the DICOMweb server.',
model=Assetstore)
Expand Down

0 comments on commit af69411

Please sign in to comment.