# coding: utf-8 from flask import Blueprint from applications.waybill_return.resource import WayBillReturnStatusResource, \ WayBillReturnItemInnerCanon, WayBillReturnCanon, WayBillReturnPrint from resources import MyApi __author__ = 'StasEvseev' blueprint = Blueprint('waybillreturn_blueprint', __name__) api = MyApi(blueprint, prefix='/api') api.register_canon(WayBillReturnCanon, "/waybillreturn") api.register_canon(WayBillReturnItemInnerCanon, '/waybillreturn') api.add_resource(WayBillReturnStatusResource, '/waybillreturn/<int:id>/status') api.add_resource(WayBillReturnPrint, '/waybillreturn/print/<int:id>')
# coding: utf-8 from flask import Blueprint from applications.waybill.resource import (WayBillCanon, WayBillHelperResource, WayBillItemItemsResource, WayBillStatusResource, WayBillItemInnerCanon, WayBillPrint, WayBillBulk, WayBillPrintBulk) from resources import MyApi blueprint = Blueprint( 'waybill_blueprint', __name__, static_folder='static', template_folder='templates', static_url_path='/static/waybill') api = MyApi(blueprint, prefix='/api') api.add_resource(WayBillBulk, '/waybillbulk') api.register_canon(WayBillCanon, "/waybill") api.register_canon(WayBillItemInnerCanon, '/waybill') api.add_resource(WayBillHelperResource, '/waybill/check_exists') api.add_resource(WayBillStatusResource, '/waybill/<int:id>/status') api.add_resource(WayBillPrint, '/waybill/print/<int:id>') api.add_resource(WayBillPrintBulk, '/waybill/print_bulk')
# coding: utf-8 from flask import Blueprint from resources import MyApi from applications.good.resource import GoodResourceCanon, GoodPrintBarcode __author__ = 'StasEvseev' blueprint = Blueprint('good_blueprint', __name__) api = MyApi(blueprint, prefix='/api') api.register_canon(GoodResourceCanon, "/good") api.add_resource(GoodPrintBarcode, "/good/<int:id>/printbarcode")
# coding: utf-8 from flask import Blueprint from applications.return_app.resource import ReturnCanon, ReturnItemInnerCanon,\ ReturnStatusResource from resources import MyApi __author__ = 'StasEvseev' blueprint = Blueprint('return_blueprint', __name__) api = MyApi(blueprint, prefix='/api') api.register_canon(ReturnCanon, '/return') api.register_canon(ReturnItemInnerCanon, '/return') api.add_resource(ReturnStatusResource, '/return/<int:id>/status')
# coding: utf-8 from flask import Blueprint from applications.acceptance.resource import AcceptanceCanon, \ AcceptanceItemsResource, AcceptanceRemainItemsResource, \ AcceptanceStatusResource, AcceptanceItemInnerCanon from resources import MyApi blueprint = Blueprint( 'acceptance_blueprint', __name__, static_folder='static', template_folder='templates', static_url_path='/static/acceptance') api = MyApi(blueprint, prefix='/api') api.register_canon(AcceptanceCanon, '/acceptance') api.register_canon(AcceptanceItemInnerCanon, '/acceptance') api.add_resource(AcceptanceStatusResource, '/acceptance/<int:id>/status')
# coding: utf-8 from flask import Blueprint from applications.inventory.resource import ( InventoryCanon, InventoryStatusResource, InventoryItemCanon, InventoryItemInnerCanon, InventoryPrint) from resources import MyApi __author__ = 'StasEvseev' blueprint = Blueprint('inventory_blueprint', __name__) api = MyApi(blueprint, prefix='/api') api.register_canon(InventoryCanon, '/inventory') api.register_canon(InventoryItemInnerCanon, '/inventory') api.register_canon(InventoryItemCanon, '/inventory-items') api.add_resource(InventoryStatusResource, '/inventory/<int:id>/status') api.add_resource(InventoryPrint, '/inventory/print/<int:id>')
# coding: utf-8 from flask import Blueprint from applications.price.resource import (PriceParishByGood, PriceResource, PriceHelperResource, PriceBulkMailResource, PriceParishByGood2, PriceBulkInvoiceResource) from resources import MyApi blueprint = Blueprint('price_blueprint', __name__) api = MyApi(blueprint, prefix='/api') api.add_resource(PriceParishByGood, '/good/<int:id>/priceparish') api.add_resource(PriceParishByGood2, '/price/togood/<int:id>') api.add_resource(PriceResource, '/price') api.add_resource(PriceHelperResource, '/price/getprice') api.add_resource(PriceBulkMailResource, '/pricebulk') api.add_resource(PriceBulkInvoiceResource, '/pricebulkinvoice')