Esempio n. 1
0
from settings.settings_api import settings
#from resource.images_api import images
from application.application_api import application
#from search.search_api import search
#from storage.storage_api import storage
from pipeline.pipeline_api import pipeline
from operators.operators_api import operator
from service import app

app.register_blueprint(settings, url_prefix='/v1/settings')
#app.register_blueprint(images, url_prefix='/v1/images')
#app.register_blueprint(search, url_prefix='/v1/search')
#app.register_blueprint(storage, url_prefix='/v1/storage')
app.register_blueprint(pipeline, url_prefix='/v1/pipeline')
app.register_blueprint(operator, url_prefix='/v1/operator')
app.register_blueprint(application, url_prefix='/v1/application')
Esempio n. 2
0
from service import app
from service.routes import api_blueprint

if __name__ == '__main__':
    app.register_blueprint(api_blueprint)
    app.run()
Esempio n. 3
0
def get_municipalities():
    return normalizer.process_municipality(request)


@bp_v1_0.route('/localidades', methods=['GET', 'POST'])
def get_localities():
    return normalizer.process_locality(request)


@bp_v1_0.route('/calles', methods=['GET', 'POST'])
def get_streets():
    return normalizer.process_street(request)


@bp_v1_0.route('/direcciones', methods=['GET', 'POST'])
def get_addresses():
    return normalizer.process_address(request)


@bp_v1_0.route('/ubicacion', methods=['GET', 'POST'])
@disable_cache
def get_location():
    return normalizer.process_location(request)


# Última versión de la API
app.register_blueprint(bp_v1_0, url_prefix='/api')

# v1.0
app.register_blueprint(bp_v1_0, url_prefix='/api/v1.0')
Esempio n. 4
0
from service import app, get_blueprint

app.register_blueprint(get_blueprint('monitor'), url_prefix='/monitor')
if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True, threaded=True)