from flask import Flask
from flask_restx import Api
from services.orders import orders_namespace
from services.products import products_namespace


def get_api(app: Flask) ->Api:
    return Api(app, version='1.0.0', title='Interview task REST API', doc=
        '/swagger/')


def initialize_app():
    app = Flask(__name__)
    api = Api(app, doc='/swagger/')
    api.add_namespace(products_namespace)
    api.add_namespace(orders_namespace)
    return app

42e0e580ce8c3b5a730aa582c6c9908216ab7494
<mask token>

<mask token>


def get_api(app: Flask) ->Api:
    return Api(app, version='1.0.0', title='Interview task REST API', doc=
        '/swagger/')


<mask token>

<mask token>


def get_api(app: Flask) ->Api:
    return Api(app, version='1.0.0', title='Interview task REST API', doc=
        '/swagger/')


def initialize_app():
    app = Flask(__name__)
    api = Api(app, doc='/swagger/')
    api.add_namespace(products_namespace)
    api.add_namespace(orders_namespace)
    return app

from flask import Flask
from flask_restx import Api
from services.orders import orders_namespace
from services.products import products_namespace


def get_api(app: Flask) ->Api:
    return Api(app, version='1.0.0', title='Interview task REST API', doc=
        '/swagger/')


def initialize_app():
    app = Flask(__name__)
    api = Api(app, doc='/swagger/')
    api.add_namespace(products_namespace)
    api.add_namespace(orders_namespace)
    return app
