Skip to content

Commit

Permalink
using predefined path params
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Feb 4, 2023
1 parent 6149427 commit f48ef5c
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions xcube/webapi/volumes/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,24 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

import functools
import gzip
import math
import sys
import functools

import numpy as np
import pandas as pd
import pyproj

from xcube.core.gridmapping import CRS_CRS84
from xcube.core.select import select_subset
from xcube.server.api import ApiError
from xcube.server.api import ApiHandler
from xcube.core.gridmapping import CRS_CRS84
from .api import api
from .config import DEFAULT_MAX_VOXEL_COUNT
from .context import VolumesContext
from ..datasets import PATH_PARAM_DATASET_ID
from ..datasets import PATH_PARAM_VAR_NAME


# noinspection PyPep8Naming
Expand All @@ -48,22 +51,8 @@ class VolumesContextHandler(ApiHandler[VolumesContext]):
" https://teem.sourceforge.net/nrrd/format.html"
),
parameters=[
{
"name": "datasetId",
"in": "path",
"description": "Dataset identifier",
"schema": {
"type": "string",
}
},
{
"name": "varName",
"in": "path",
"description": "Name of variable in dataset",
"schema": {
"type": "string",
}
},
PATH_PARAM_DATASET_ID,
PATH_PARAM_VAR_NAME,
{
"name": "bbox",
"in": "query",
Expand Down

0 comments on commit f48ef5c

Please sign in to comment.