Skip to content

PakaWarehouses API

majeklDeSanta edited this page Dec 13, 2021 · 15 revisions

# WAREHOUSES

GLOBAL WAREHOUSES

GET /api/GlobalWarehouse

Args

no args

Response

[{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "active":bool }]

GET /api/GlobalWarehouse/{id}

Args

Request param: id

Response

{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "active":bool }

POST /api/GlobalWarehouse

Args

Request body:
{ "city":string, "street":string, "number":string, "postalCode":string, "active":bool }

Response

{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "active":bool }

PUT /api/GlobalWarehouse/{id}

Args

Request param: id
Request body:
{ "city":string, "street":string, "number":string, "postalCode":string, "active":bool }

Response

{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "active":bool }

DELETE /api/GlobalWarehouse

Args

no args

Response

{ "count":int, 'message': 'globalWarehouse have been removed' }

DELETE /api/GlobalWarehouse/{id}

Args

Request param: id

Response

{ 'message': 'globalWarehouse have been removed' }

GET /api/globalWarehouseFilter/field=value

Args

filed,value

Response

[{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "active":bool }]

LOCAL WAREHOUSES

GET /api/LocalWarehouse

Args

no args

Response

[{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "idGlobalWarehouse":int, "active":bool }]

GET /api/LocalWarehouse/{id}

Args

Request param: id

Response

{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "idGlobalWarehouse":int, "active":bool }

POST /api/LocalWarehouse

Args

Request body:
{ "city":string, "street":string, "number":string, "postalCode":string, "idGlobalWarehouse":int, "active":bool }

Response

{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "idGlobalWarehouse":int, "active":bool }

PUT /api/LocalWarehouse/{id}

Args

Request param: id Request body: { "city":string, "street":string, "number":string, "postalCode":string, "idGlobalWarehouse":int, "active":bool }

Response

{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "idGlobalWarehouse":int, "active":bool }

DELETE /api/LocalWarehouse

Args

no args

Response

{ "count":int, 'message': 'localWarehouse have been removed' }

DELETE /api/LocalWarehouse/{id}

Args

Request param: id \

Response

{ 'message': 'localWarehouse have been removed' }

GET /api/localWarehouseFilter/field=value

Args

filed,value

Response

[{ "idWarehouse":int, "city":string, "street":string, "number":string, "postalCode":string, "active":bool, "idGlobalWarehouse":int }]

RANGE POSTALCODE

GET /api/RangePostalCode

Args

no args

Response

[{ "idRangePostalCode":string, "idWarehouse":int }]

GET /api/RangePostalCode/{postalCode}

Args

Request param: postalCode

Response

{ "idRangePostalCode":string, "idWarehouse":int }

POST /api/RangePostalCode

Args

Request body: { "idRangePostalCode":string, "idLocalWarehouse":int }

Response

{ "idRangePostalCode":string, "idWarehouse":int }

PUT /api/RangePostalCode/{postalCode}

Args

Request param: postalCode Request body: { "idWarehouse":int }

Response

{ "idRangePostalCode":string, "idWarehouse":int }

DELETE /api/RangePostalCode

Args

no args

Response

{ "count":int, 'message': 'rangePostalCode have been removed' }

DELETE /api/RangePostalCode/{id}

Args

Request param: id

Response

{ 'message': 'rangePostalCode have been removed' }

TRACK

GET /api/getWarehouseFromCode

Args

Request body: { "postalCode":string }

Response

{ "idWarehouse":int }

GET /api/getTrack

Args

Request body:
{ "postalCodeSource":string, "postalCodeDestination":string, }

Response

{ "idLocalWarehouseSource":int, "idGlobalWarehouse1":int, "idGlobalWarehouse2":int, "idLocalWarehouseDestination":int }

Clone this wiki locally