Exemple #1
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         [],
         {"200": SWAGGER.get_type_response('level2_project', is_list=True)},
         summary="Get list of existing projects"
     )
Exemple #2
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'product', 'min_lat', 'max_lat',
          'min_lon', 'max_lon', 'min_pressure', 'max_pressure',
          'min_altitude', 'max_altitude', 'start_time', 'end_time',
          'min_scanid', 'document_limit'],
         {
             "200": SWAGGER.get_type_response('L2', is_list=True),
             "400": SWAGGER.get_response('Level2BadQuery')
         },
         summary=(
             "Get data in provided area"),
         description=(
             "Get data for a certain area\n"
             "\n"
             "Provide latitude and/or longitude limits to get data for a "
             "certain area of the earth.\n"
             "\n"
             "If no latitude or longitude limits are provided, data for "
             "the whole earth is returned.\n"
             "\n"
             "Choose between min/max altitude and min/max pressure."
             "\n"
             "Example url parameters:\n"
             "\n"
             "    product=p1&product=p2&min_pressure=100&max_pressure=100&"
             "start_time=2015-10-11&end_time=2016-02-20&min_lat=-80&"
             "max_lat=-70&min_lon=150&max_lon=200")
     )
Exemple #3
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'freqmode', 'scanno', 'product'],
         {"200": SWAGGER.get_type_response('L2', is_list=True)},
         summary=(
             "Get level2 data for one scan and freqmode")
     )
Exemple #4
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'freqmode', 'offset', 'limit'],
         {"200": SWAGGER.get_type_response(
             'level2_scan_comment', is_list=True)},
         summary="Get list of comments for a freqmode"
     )
Exemple #5
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level1'], ['date'], {
             "200":
             SWAGGER.get_type_response(
                 'freqmode_info', is_list=True, Date=str)
         },
         summary="Get scan counts for a day")
Exemple #6
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'freqmode', 'scanno'],
         {"200": SWAGGER.get_type_response('L2i')},
         summary=(
             "Get level2 info for one scan and freqmode")
     )
Exemple #7
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project'],
         {"200": SWAGGER.get_type_response(
             'level2_product_name', is_list=True)},
         summary=(
             "Get available products")
     )
Exemple #8
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'freqmode', 'start_time', 'end_time',
          'comment', 'limit', 'offset'],
         {"200": SWAGGER.get_type_response(
             'level2_scan_info', is_list=True)},
         summary="Get list of matching scans"
     )
Exemple #9
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project'],
         {
             "200": SWAGGER.get_type_response(
                 'L2ProjectAnnotation', is_list=True
             )
         },
         summary='Get annotations for a project',
     )
Exemple #10
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project'],
         {
             "200": SWAGGER.get_type_response(
                 'level2_project_freqmode', is_list=True,
             )
         },
         summary="Get project information"
     )
Exemple #11
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'freqmode', 'scanno'],
         {"200": SWAGGER.get_mixed_type_response(
             [
                 ('L2', True),
                 ('L2i', False),
                 ('L2c', True),
                 ('L2anc', True)])},
         summary=(
             "Get level2 data, info, comments, and ancillary data" +
             " for one scan and freqmode")
     )
Exemple #12
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'date', 'product',
          'min_pressure', 'max_pressure', 'min_altitude', 'max_altitude',
          'min_scanid', 'document_limit'],
         {
             "200": SWAGGER.get_type_response('L2', is_list=True),
             "400": SWAGGER.get_response('Level2BadQuery')
         },
         summary=(
             "Get data for provided day"),
         description=(
             "Get data for a certain day\n"
             "\n"
             "Choose between min/max altitude and min/max pressure.\n"
             "\n"
             "Example query:\n"
             "\n"
             "    product=p1&product=p2&min_pressure=1000&max_pressure=1000"
         )
     )
Exemple #13
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'product', 'location', 'radius',
          'min_pressure', 'max_pressure', 'min_altitude', 'max_altitude',
          'start_time', 'end_time', 'min_scanid', 'document_limit'],
         {
             "200": SWAGGER.get_type_response('L2', is_list=True),
             "400": SWAGGER.get_response('Level2BadQuery')
         },
         summary=(
             "Get data close to provided location"),
         description=(
             "Provide one or more locations and a radius to get "
             "data within the resulting circles on the earth surface.\n"
             "\n"
             "Choose between min/max altitude and min/max pressure.\n"
             "\n"
             "Example query:\n"
             "\n"
             "   product=p1&product=p2&min_pressure=100&max_pressure=1000&"
             "start_time=2015-10-11&end_time=2016-02-20&radius=100&"
             "location=-24.0,200.0&location=-30.0,210.0")
     )
Exemple #14
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level1'], ['freqmode', 'scanno'],
         {"200": SWAGGER.get_type_response('collocation', is_list=True)},
         summary="Get collocations for a scan")
Exemple #15
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level1'], ['freqmode', 'scanno', 'species', 'aprsource'],
         {"200": SWAGGER.get_type_response('apriori')},
         summary="Get apriori data for a scan and species")
Exemple #16
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level1'], ['freqmode', 'scanno'],
         {"200": SWAGGER.get_type_response('ptz')},
         summary="Get ptz data for a scan")
Exemple #17
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level1'], ['date', 'freqmode'],
         {"200": SWAGGER.get_type_response('Log', is_list=True)},
         summary="Get log info for scans in a day and freqmode")