Пример #1
0
def main():
    settings = {
    "host": config.server_host,
    "port": config.server_port,
    "debug": True,
    }
    app.run(**settings)
Пример #2
0
def main():
    settings = {
        "host": config.server_host,
        "port": config.server_port,
        "debug": True,
    }
    app.run(**settings)
Пример #3
0
from movie import app

if __name__ == '__main__':
    app.run(debug=True)
Пример #4
0
from movie import app
from flask_restful import Api
from movie.rest_api.movie_resource import *
from movie.repository.movie_repository import Movies

api = Api(app)
service_namespace = "/movies"

api.add_resource(MovieListResource, "/movies")
api.add_resource(MovieResource, "/movies/<movie_id>")
api.add_resource(MovieCreateResource, "/movies/create")

if __name__ == '__main__':
    app.run(port=5001, debug=True)
Пример #5
0
from movie import app

if __name__ == '__main__':
    app.run()