Exemplo n.º 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"
     )
Exemplo n.º 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")
     )
Exemplo n.º 3
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")
Exemplo n.º 4
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")
     )
Exemplo n.º 5
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")
     )
Exemplo n.º 6
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"
     )
Exemplo n.º 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")
     )
Exemplo n.º 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"
     )
Exemplo n.º 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',
     )
Exemplo n.º 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"
     )
Exemplo n.º 11
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"
         )
     )
Exemplo n.º 12
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")
     )
Exemplo n.º 13
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")
Exemplo n.º 14
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")
Exemplo n.º 15
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")
Exemplo n.º 16
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")