#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import webapp2
from aerialassist.scouting_data import GetScoutingData, PostScoutingData, PostBenchmarkingData

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.write('2016 Sparx 1126 Scouting Service!')

app = webapp2.WSGIApplication([
    ('/', MainHandler),
    webapp2.Route(r'/api/2016/v1/ScoutingData/all',
        GetScoutingData,
        methods=['GET'],
        handler_method='getAll'),
    webapp2.Route(r'/api/2016/v1/BenchmarkingData/all',
        GetScoutingData,
        methods=['GET'],
        handler_method='getBenchmarkingAll'),
    webapp2.Route(r'/api/2016/v1/ScoutingData', PostScoutingData, methods=['POST']),
    webapp2.Route(r'/api/2016/v1/BenchmarkingData', PostBenchmarkingData, methods=['POST']),
    webapp2.Route(r'/api/2016/v1/ScoutingData/<team_key>',
        GetScoutingData, 
        methods=['GET'], 
        handler_method='getTeamLevel'),
    webapp2.Route(r'/api/2016/v1/ScoutingData/<team_key>/<event_key>',
        GetScoutingData, 
        methods=['GET'],
        handler_method='getEventLevel'),
    webapp2.Route(r'/api/2016/v1/ScoutingData/<team_key>/<event_key>/<match_key>',
        GetScoutingData, 
        methods=['GET'],
        handler_method='getMatchLevel'),
    webapp2.Route(r'/api/2016/v1/BenchmarkingData/<team_key>/<event_key>',
        GetScoutingData,
        methods=['GET'],
        handler_method='getBenchmarkingEventLevel')
], debug=True)

cf739da1cde151bb00ae9b22026a5081d4a29580
<mask token>


class MainHandler(webapp2.RequestHandler):
    <mask token>


<mask token>

<mask token>


class MainHandler(webapp2.RequestHandler):

    def get(self):
        self.response.write('2016 Sparx 1126 Scouting Service!')


<mask token>

<mask token>


class MainHandler(webapp2.RequestHandler):

    def get(self):
        self.response.write('2016 Sparx 1126 Scouting Service!')


app = webapp2.WSGIApplication([('/', MainHandler), webapp2.Route(
    '/api/2016/v1/ScoutingData/all', GetScoutingData, methods=['GET'],
    handler_method='getAll'), webapp2.Route(
    '/api/2016/v1/BenchmarkingData/all', GetScoutingData, methods=['GET'],
    handler_method='getBenchmarkingAll'), webapp2.Route(
    '/api/2016/v1/ScoutingData', PostScoutingData, methods=['POST']),
    webapp2.Route('/api/2016/v1/BenchmarkingData', PostBenchmarkingData,
    methods=['POST']), webapp2.Route('/api/2016/v1/ScoutingData/<team_key>',
    GetScoutingData, methods=['GET'], handler_method='getTeamLevel'),
    webapp2.Route('/api/2016/v1/ScoutingData/<team_key>/<event_key>',
    GetScoutingData, methods=['GET'], handler_method='getEventLevel'),
    webapp2.Route(
    '/api/2016/v1/ScoutingData/<team_key>/<event_key>/<match_key>',
    GetScoutingData, methods=['GET'], handler_method='getMatchLevel'),
    webapp2.Route('/api/2016/v1/BenchmarkingData/<team_key>/<event_key>',
    GetScoutingData, methods=['GET'], handler_method=
    'getBenchmarkingEventLevel')], debug=True)

import webapp2
from aerialassist.scouting_data import GetScoutingData, PostScoutingData, PostBenchmarkingData


class MainHandler(webapp2.RequestHandler):

    def get(self):
        self.response.write('2016 Sparx 1126 Scouting Service!')


app = webapp2.WSGIApplication([('/', MainHandler), webapp2.Route(
    '/api/2016/v1/ScoutingData/all', GetScoutingData, methods=['GET'],
    handler_method='getAll'), webapp2.Route(
    '/api/2016/v1/BenchmarkingData/all', GetScoutingData, methods=['GET'],
    handler_method='getBenchmarkingAll'), webapp2.Route(
    '/api/2016/v1/ScoutingData', PostScoutingData, methods=['POST']),
    webapp2.Route('/api/2016/v1/BenchmarkingData', PostBenchmarkingData,
    methods=['POST']), webapp2.Route('/api/2016/v1/ScoutingData/<team_key>',
    GetScoutingData, methods=['GET'], handler_method='getTeamLevel'),
    webapp2.Route('/api/2016/v1/ScoutingData/<team_key>/<event_key>',
    GetScoutingData, methods=['GET'], handler_method='getEventLevel'),
    webapp2.Route(
    '/api/2016/v1/ScoutingData/<team_key>/<event_key>/<match_key>',
    GetScoutingData, methods=['GET'], handler_method='getMatchLevel'),
    webapp2.Route('/api/2016/v1/BenchmarkingData/<team_key>/<event_key>',
    GetScoutingData, methods=['GET'], handler_method=
    'getBenchmarkingEventLevel')], debug=True)

#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
import webapp2
from aerialassist.scouting_data import GetScoutingData, PostScoutingData, PostBenchmarkingData

class MainHandler(webapp2.RequestHandler):
    def get(self):
        self.response.write('2016 Sparx 1126 Scouting Service!')

app = webapp2.WSGIApplication([
    ('/', MainHandler),
    webapp2.Route(r'/api/2016/v1/ScoutingData/all',
        GetScoutingData,
        methods=['GET'],
        handler_method='getAll'),
    webapp2.Route(r'/api/2016/v1/BenchmarkingData/all',
        GetScoutingData,
        methods=['GET'],
        handler_method='getBenchmarkingAll'),
    webapp2.Route(r'/api/2016/v1/ScoutingData', PostScoutingData, methods=['POST']),
    webapp2.Route(r'/api/2016/v1/BenchmarkingData', PostBenchmarkingData, methods=['POST']),
    webapp2.Route(r'/api/2016/v1/ScoutingData/<team_key>',
        GetScoutingData, 
        methods=['GET'], 
        handler_method='getTeamLevel'),
    webapp2.Route(r'/api/2016/v1/ScoutingData/<team_key>/<event_key>',
        GetScoutingData, 
        methods=['GET'],
        handler_method='getEventLevel'),
    webapp2.Route(r'/api/2016/v1/ScoutingData/<team_key>/<event_key>/<match_key>',
        GetScoutingData, 
        methods=['GET'],
        handler_method='getMatchLevel'),
    webapp2.Route(r'/api/2016/v1/BenchmarkingData/<team_key>/<event_key>',
        GetScoutingData,
        methods=['GET'],
        handler_method='getBenchmarkingEventLevel')
], debug=True)
