Example #1
0
#!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-05-05 17:30
"""

from apps.migrations import migrations_api
from apps.migrations.warehouse.resource import (
    WarehousesSyncResource, )

# 仓库
migrations_api.add_resource(WarehousesSyncResource,
                            '/warehouses/sync',
                            endpoint='warehouses_sync',
                            strict_slashes=False)
Example #2
0
#!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-05-07 01:24
"""

from apps.migrations import migrations_api
from apps.migrations.delivery.resource import (
    DeliveriesSyncResource, )

# 销货
migrations_api.add_resource(DeliveriesSyncResource,
                            '/deliveries/sync',
                            endpoint='deliveries_sync',
                            strict_slashes=False)
Example #3
0
#!/usr/bin/env python
# encoding: utf-8

"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-05-06 19:07
"""

from apps.migrations import migrations_api
from apps.migrations.inventory.resource import (
    InventoriesSyncResource,
)

# 存货
migrations_api.add_resource(
    InventoriesSyncResource,
    '/inventories/sync',
    endpoint='inventories_sync',
    strict_slashes=False
)
Example #4
0
#!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-04-27 23:54
"""

from apps.migrations import migrations_api
from apps.migrations.supplier.resource import (
    SuppliersSyncResource, )

# 友商
migrations_api.add_resource(SuppliersSyncResource,
                            '/suppliers/sync',
                            endpoint='suppliers_sync',
                            strict_slashes=False)
Example #5
0
#!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-05-05 17:30
"""

from apps.migrations import migrations_api
from apps.migrations.rack.resource import (
    RacksSyncResource, )

# 货位
migrations_api.add_resource(RacksSyncResource,
                            '/racks/sync',
                            endpoint='racks_sync',
                            strict_slashes=False)
Example #6
0
#!/usr/bin/env python
# encoding: utf-8

"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-04-27 16:31
"""

from apps.migrations import migrations_api
from apps.migrations.production.resource import (
    ProductionsSyncResource,
)

# 产品
migrations_api.add_resource(
    ProductionsSyncResource,
    '/productions/sync',
    endpoint='productions_sync',
    strict_slashes=False
)
Example #7
0
#!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-05-08 16:32
"""

from apps.migrations import migrations_api
from apps.migrations.purchase.resource import (
    PurchasesSyncResource, )

# 进货
migrations_api.add_resource(PurchasesSyncResource,
                            '/purchases/sync',
                            endpoint='purchases_sync',
                            strict_slashes=False)
Example #8
0
#!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: urls.py
@time: 2019-04-27 23:33
"""

from apps.migrations import migrations_api
from apps.migrations.customer.resource import (
    CustomersSyncResource, )

# 客户
migrations_api.add_resource(CustomersSyncResource,
                            '/customers/sync',
                            endpoint='customers_sync',
                            strict_slashes=False)