Skip to Content
Dgmos dokümantasyonu yayında 🎉
DokümantasyonAPILoad Management

Load Management

This page is auto-generated from cmd/web/routes.go.

Endpoint List

MethodPathHandlerRequest
Post/api/modules/create-loadhandlers.Repo.CreateLoadLoadRequest.LoadCreateRequest
Post/api/modules/delete-loadhandlers.Repo.DeleteLoadrequests.DeleteRequest
Post/api/modules/list-loadhandlers.Repo.ListLoadrequests.ListRequest
Post/api/modules/list-load-categoryhandlers.Repo.ListLoadCategory-
Post/api/modules/list-load-dg-assessmenthandlers.Repo.ListDGAssessments-
Post/api/modules/list-load-exemption-typehandlers.Repo.ListLoadExemptionType-
Get/api/modules/list-load-physical-typehandlers.Repo.ListLoadPhysicalType-
Post/api/modules/list-load-transport-unithandlers.Repo.ListLoadTransportUnit-
Post/api/modules/list-load-unithandlers.Repo.ListLoadUnit-
Post/api/modules/read-barcode-data-loadhandlers.Repo.ReadLoadByBarcodeLoadRequest.LoadItemsByBarcodeRequest
Post/api/modules/read-dg-content-loadhandlers.Repo.ReadLoadContentLoadRequest.LoadValue
Post/api/modules/read-loadhandlers.Repo.ReadLoadrequests.ReadRequest
Post/api/modules/report-loadhandlers.Repo.ReportLoad-
Post/api/modules/update-loadhandlers.Repo.UpdateLoadLoadRequest.LoadUpdateRequest

Request Example: LoadRequest.LoadCreateRequest

{ "customer_id": 0, "barcode": "string", "stock_code": "string", "stock_type_id": 0, "shipment_category_id": 0, "load_type_id": 0, "load_description": "string", "load_description_other": "string", "transport_type_id": 0, "physical_state_id": 0, "is_dg": 0, "un_no_id": "string", "exemption_type_id": 0, "exemption_description": "string", "length": 0, "width": 0, "height": 0, "weight": {}, "storage_code": "string", "customs_code": "string", "brand": "string", "file_id": 0 }

Fields:

FieldTypeRequired
customer_idint64no
barcodestringno
stock_codestringno
stock_type_idint64no
shipment_category_idint64no
load_type_idint64no
load_descriptionstringno
load_description_otherstringno
transport_type_idint64no
physical_state_idint64no
is_dgintno
un_no_idstringno
exemption_type_idintno
exemption_descriptionstringno
lengthintno
widthintno
heightintno
weightfloat64no
storage_codestringno
customs_codestringno
brandstringno
file_idint64no

Request Example: requests.DeleteRequest

{ "id": 0 }

Fields:

FieldTypeRequired
idintyes

Request Example: requests.ListRequest

{ "per_page": 0, "page": 0, "sort_column": "string", "sort_order": "string" }

Fields:

FieldTypeRequired
per_pageintyes
pageintyes
sort_columnstringno
sort_orderstringno

Request Example: LoadRequest.LoadItemsByBarcodeRequest

{ "barcode": "string" }

Fields:

FieldTypeRequired
barcodestringno

Request Example: LoadRequest.LoadValue

{ "value": "string", "key": "string" }

Fields:

FieldTypeRequired
valuestringno
keystringno

Request Example: requests.ReadRequest

{ "id": 0 }

Fields:

FieldTypeRequired
idintyes

Request Example: LoadRequest.LoadUpdateRequest

{ "id": 0, "customer_id": 0, "barcode": "string", "stock_code": "string", "stock_type_id": 0, "shipment_category_id": 0, "load_type_id": 0, "load_description": "string", "load_description_other": "string", "transport_type_id": 0, "physical_state_id": 0, "is_dg": 0, "un_no_id": "string", "exemption_type_id": 0, "exemption_description": "string", "length": 0, "width": 0, "height": 0, "weight": {}, "storage_code": "string", "customs_code": "string", "brand": "string", "file_id": 0 }

Fields:

FieldTypeRequired
idint64no
customer_idint64no
barcodestringno
stock_codestringno
stock_type_idint64no
shipment_category_idint64no
load_type_idint64no
load_descriptionstringno
load_description_otherstringno
transport_type_idint64no
physical_state_idint64no
is_dgintno
un_no_idstringno
exemption_type_idintno
exemption_descriptionstringno
lengthintno
widthintno
heightintno
weightfloat64no
storage_codestringno
customs_codestringno
brandstringno
file_idint64no

Response Examples

Create:

{ "status": "succeeded", "message": "record created successfully", "id": 1 }

Delete:

{ "status": "succeeded", "message": "deleted successfully" }

List:

{ "status": "succeeded", "data": [ ], "totalPage": 1, "currentPage": 1, "perPage": 10 }

Read:

{ "status": "succeeded", "data": { } }

Update:

{ "status": "succeeded", "message": "updated successfully" }

Error (example):

{ "status": "invalid_request", "message": "validation failed", "errors": [ ] }
Last updated on