This is an API for scheduling VRP tasks. Source code can be found on https://github.com/Georepublic/pg_scheduleserv
0.2.0
GNU Affero General Public License
Team Georepublic info@georepublic.de
- http
- https
- application/json
- application/json
- text/calendar
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /breaks/{break_id} | delete breaks break ID | Delete a break |
GET | /breaks/{break_id} | get breaks break ID | Fetch a break |
GET | /vehicles/{vehicle_id}/breaks | get vehicles vehicle ID breaks | List breaks |
PATCH | /breaks/{break_id} | patch breaks break ID | Update a break |
POST | /vehicles/{vehicle_id}/breaks | post vehicles vehicle ID breaks | Create a new break |
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /jobs/{job_id} | delete jobs job ID | Delete a job |
GET | /jobs/{job_id} | get jobs job ID | Fetch a job |
GET | /jobs/{job_id}/schedule | get jobs job ID schedule | Get the schedule for a job |
GET | /projects/{project_id}/jobs | get projects project ID jobs | List jobs for a project |
PATCH | /jobs/{job_id} | patch jobs job ID | Update a job |
POST | /projects/{project_id}/jobs | post projects project ID jobs | Create a new job |
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /projects/{project_id} | delete projects project ID | Delete a project |
GET | /projects | get projects | List projects |
GET | /projects/{project_id} | get projects project ID | Fetch a project |
PATCH | /projects/{project_id} | patch projects project ID | Update a project |
POST | /projects | post projects | Create a new project |
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /projects/{project_id}/schedule | delete projects project ID schedule | Delete the schedule |
GET | /projects/{project_id}/schedule | get projects project ID schedule | Get the schedule |
POST | /projects/{project_id}/schedule | post projects project ID schedule | Schedule the tasks |
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /shipments/{shipment_id} | delete shipments shipment ID | Delete a shipment |
GET | /projects/{project_id}/shipments | get projects project ID shipments | List shipments for a project |
GET | /shipments/{shipment_id} | get shipments shipment ID | Fetch a shipment |
GET | /shipments/{shipment_id}/schedule | get shipments shipment ID schedule | Get the schedule for a shipment |
PATCH | /shipments/{shipment_id} | patch shipments shipment ID | Update a shipment |
POST | /projects/{project_id}/shipments | post projects project ID shipments | Create a new shipment |
Method | URI | Name | Summary |
---|---|---|---|
DELETE | /vehicles/{vehicle_id} | delete vehicles vehicle ID | Delete a vehicle |
GET | /projects/{project_id}/vehicles | get projects project ID vehicles | List vehicles for a project |
GET | /vehicles/{vehicle_id} | get vehicles vehicle ID | Fetch a vehicle |
GET | /vehicles/{vehicle_id}/schedule | get vehicles vehicle ID schedule | Get the schedule for a vehicle |
PATCH | /vehicles/{vehicle_id} | patch vehicles vehicle ID | Update a vehicle |
POST | /projects/{project_id}/vehicles | post projects project ID vehicles | Create a new vehicle |
DELETE /breaks/{break_id}
Delete a break with its break_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
break_id | path |
integer | int64 |
✓ | Break ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
DELETE /jobs/{job_id}
Delete a job with its job_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
job_id | path |
integer | int64 |
✓ | Job ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
DELETE /projects/{project_id}
Delete a project with its project_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
DELETE /projects/{project_id}/schedule
Delete the schedule for a project
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
DELETE /shipments/{shipment_id}
Delete a shipment with its shipment_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
shipment_id | path |
integer | int64 |
✓ | Shipment ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
DELETE /vehicles/{vehicle_id}
Delete a vehicle with its vehicle_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
vehicle_id | path |
integer | int64 |
✓ | Vehicle ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
GET /breaks/{break_id}
Fetch a break with its break_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
break_id | path |
integer | int64 |
✓ | Break ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
GetBreaksBreakIDOKBody
- composed type UtilSuccessResponse
- inlined member (getBreaksBreakIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseBreak | models.DatabaseBreak |
GET /jobs/{job_id}
Fetch a job with its job_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
job_id | path |
integer | int64 |
✓ | Job ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
GetJobsJobIDOKBody
- composed type UtilSuccessResponse
- inlined member (getJobsJobIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseJob | models.DatabaseJob |
GET /jobs/{job_id}/schedule
Get the schedule for a job using job_id
- application/json
- application/json
- text/calendar
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
job_id | path |
integer | int64 |
✓ | Job ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
GetJobsJobIDScheduleOKBody
- composed type UtilSuccessResponse
- inlined member (getJobsJobIdScheduleOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []UtilScheduleDataTask | []*models.UtilScheduleDataTask |
GET /projects
Get a list of projects
- application/json
- application/json
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
Status: Bad Request
GetProjectsOKBody
- composed type UtilSuccessResponse
- inlined member (getProjectsOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []DatabaseProject | []*models.DatabaseProject |
GET /projects/{project_id}
Fetch a project with its project_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
GetProjectsProjectIDOKBody
- composed type UtilSuccessResponse
- inlined member (getProjectsProjectIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseProject | models.DatabaseProject |
GET /projects/{project_id}/jobs
Get a list of jobs for a project with project_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
GetProjectsProjectIDJobsOKBody
Status: Bad Request
GetProjectsProjectIDJobsOKBody
- composed type UtilSuccessResponse
- inlined member (getProjectsProjectIdJobsOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []DatabaseJob | []*models.DatabaseJob |
GET /projects/{project_id}/schedule
Get the schedule for a project.
For JSON content type: When overview = true, only the metadata is returned. Default value is false, which also returns the summary object.
- application/json
- application/json
- text/calendar
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID | ||
overview | query |
boolean | bool |
Overview |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
GetProjectsProjectIDScheduleOKBody
Status: Bad Request
Status: Not Found
GetProjectsProjectIDScheduleOKBody
- composed type UtilSuccessResponse
- inlined member (getProjectsProjectIdScheduleOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | UtilScheduleData | models.UtilScheduleData |
GET /projects/{project_id}/shipments
Get a list of shipments for a project with project_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
GetProjectsProjectIDShipmentsOKBody
Status: Bad Request
GetProjectsProjectIDShipmentsOKBody
- composed type UtilSuccessResponse
- inlined member (getProjectsProjectIdShipmentsOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []DatabaseShipment | []*models.DatabaseShipment |
GET /projects/{project_id}/vehicles
Get a list of vehicles for a project with project_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
GetProjectsProjectIDVehiclesOKBody
Status: Bad Request
GetProjectsProjectIDVehiclesOKBody
- composed type UtilSuccessResponse
- inlined member (getProjectsProjectIdVehiclesOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []DatabaseVehicle | []*models.DatabaseVehicle |
GET /shipments/{shipment_id}
Fetch a shipment with its shipment_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
shipment_id | path |
integer | int64 |
✓ | Shipment ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
GetShipmentsShipmentIDOKBody
- composed type UtilSuccessResponse
- inlined member (getShipmentsShipmentIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseShipment | models.DatabaseShipment |
GET /shipments/{shipment_id}/schedule
Get the schedule for a shipment using shipment_id
- application/json
- application/json
- text/calendar
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
shipment_id | path |
integer | int64 |
✓ | Shipment ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
GetShipmentsShipmentIDScheduleOKBody
Status: Bad Request
Status: Not Found
GetShipmentsShipmentIDScheduleOKBody
- composed type UtilSuccessResponse
- inlined member (getShipmentsShipmentIdScheduleOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []UtilScheduleDataTask | []*models.UtilScheduleDataTask |
GET /vehicles/{vehicle_id}
Fetch a vehicle with its vehicle_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
vehicle_id | path |
integer | int64 |
✓ | Vehicle ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
GetVehiclesVehicleIDOKBody
- composed type UtilSuccessResponse
- inlined member (getVehiclesVehicleIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseVehicle | models.DatabaseVehicle |
GET /vehicles/{vehicle_id}/breaks
Get a list of breaks
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
vehicle_id | path |
integer | int64 |
✓ | Vehicle ID |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
GetVehiclesVehicleIDBreaksOKBody
Status: Bad Request
GetVehiclesVehicleIDBreaksOKBody
- composed type UtilSuccessResponse
- inlined member (getVehiclesVehicleIdBreaksOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []DatabaseBreak | []*models.DatabaseBreak |
GET /vehicles/{vehicle_id}/schedule
Get the schedule for a vehicle using vehicle_id
For JSON content type: When overview = true, only the metadata is returned. Default value is false, which also returns the summary object.
- application/json
- application/json
- text/calendar
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
vehicle_id | path |
integer | int64 |
✓ | Vehicle ID | ||
overview | query |
boolean | bool |
Overview |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
GetVehiclesVehicleIDScheduleOKBody
Status: Bad Request
Status: Not Found
GetVehiclesVehicleIDScheduleOKBody
- composed type UtilSuccessResponse
- inlined member (getVehiclesVehicleIdScheduleOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | []UtilScheduleDB | []*models.UtilScheduleDB |
PATCH /breaks/{break_id}
Update a break with its break_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
break_id | path |
integer | int64 |
✓ | Break ID | ||
Break | body |
DatabaseCreateBreakParams | models.DatabaseCreateBreakParams |
✓ | Update break |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
PatchBreaksBreakIDOKBody
- composed type UtilSuccessResponse
- inlined member (patchBreaksBreakIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseBreak | models.DatabaseBreak |
PATCH /jobs/{job_id}
Update a job (partial update) with its job_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
job_id | path |
integer | int64 |
✓ | Job ID | ||
Job | body |
DatabaseUpdateJobParams | models.DatabaseUpdateJobParams |
✓ | Job object |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
PatchJobsJobIDOKBody
- composed type UtilSuccessResponse
- inlined member (patchJobsJobIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseJob | models.DatabaseJob |
PATCH /projects/{project_id}
Update a project with its project_id The "duration_calc" parameter must be either "euclidean", "valhalla" or "osrm"
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID | ||
Project | body |
DatabaseCreateProjectParams | models.DatabaseCreateProjectParams |
✓ | Update project |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
PatchProjectsProjectIDOKBody
- composed type UtilSuccessResponse
- inlined member (patchProjectsProjectIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseProject | models.DatabaseProject |
PATCH /shipments/{shipment_id}
Update a shipment with its shipment_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
shipment_id | path |
integer | int64 |
✓ | Shipment ID | ||
Shipment | body |
DatabaseUpdateShipmentParams | models.DatabaseUpdateShipmentParams |
✓ | Update shipment |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
PatchShipmentsShipmentIDOKBody
Status: Bad Request
Status: Not Found
PatchShipmentsShipmentIDOKBody
- composed type UtilSuccessResponse
- inlined member (patchShipmentsShipmentIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseShipment | models.DatabaseShipment |
PATCH /vehicles/{vehicle_id}
Update a vehicle with its vehicle_id
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
vehicle_id | path |
integer | int64 |
✓ | Vehicle ID | ||
Vehicle | body |
DatabaseUpdateVehicleParams | models.DatabaseUpdateVehicleParams |
✓ | Update vehicle |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema | |
404 | Not Found | Not Found | schema |
Status: OK
Status: Bad Request
Status: Not Found
PatchVehiclesVehicleIDOKBody
- composed type UtilSuccessResponse
- inlined member (patchVehiclesVehicleIdOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseVehicle | models.DatabaseVehicle |
POST /projects
Create a new project with the input payload The "duration_calc" parameter must be either "euclidean", "valhalla" or "osrm"
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
Project | body |
DatabaseCreateProjectParams | models.DatabaseCreateProjectParams |
✓ | Create project |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
Status: Bad Request
PostProjectsOKBody
- composed type UtilSuccessResponse
- inlined member (postProjectsOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseProject | models.DatabaseProject |
POST /projects/{project_id}/jobs
Create a new job with the input payload
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID | ||
Job | body |
DatabaseCreateJobParams | models.DatabaseCreateJobParams |
✓ | Job object |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
PostProjectsProjectIDJobsOKBody
Status: Bad Request
PostProjectsProjectIDJobsOKBody
- composed type UtilSuccessResponse
- inlined member (postProjectsProjectIdJobsOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseJob | models.DatabaseJob |
POST /projects/{project_id}/schedule
Schedule the tasks present in a project, deleting any previous schedule and return the new schedule.
When fresh = true, the old schedule is ignored and a fresh schedule is created. Otherwise, the old schedule of each task is altered such that it remains in the "max_shift" interval. Default value is false. For JSON content type: When overview = true, only the metadata is returned. Default value is false, which also returns the summary object.
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID | ||
fresh | query |
boolean | bool |
Fresh | |||
overview | query |
boolean | bool |
Overview |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
201 | Created | Created | schema | |
400 | Bad Request | Bad Request | schema |
Status: Created
PostProjectsProjectIDScheduleCreatedBody
Status: Bad Request
PostProjectsProjectIDScheduleCreatedBody
- composed type UtilSuccessResponse
- inlined member (postProjectsProjectIdScheduleCreatedBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | UtilScheduleData | models.UtilScheduleData |
POST /projects/{project_id}/shipments
Create a new shipment with the input payload
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID | ||
Shipment | body |
DatabaseCreateShipmentParams | models.DatabaseCreateShipmentParams |
✓ | Create shipment |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
PostProjectsProjectIDShipmentsOKBody
Status: Bad Request
PostProjectsProjectIDShipmentsOKBody
- composed type UtilSuccessResponse
- inlined member (postProjectsProjectIdShipmentsOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseShipment | models.DatabaseShipment |
POST /projects/{project_id}/vehicles
Create a new vehicle with the input payload
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
project_id | path |
integer | int64 |
✓ | Project ID | ||
Vehicle | body |
DatabaseCreateVehicleParams | models.DatabaseCreateVehicleParams |
✓ | Create vehicle |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
PostProjectsProjectIDVehiclesOKBody
Status: Bad Request
PostProjectsProjectIDVehiclesOKBody
- composed type UtilSuccessResponse
- inlined member (postProjectsProjectIdVehiclesOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseVehicle | models.DatabaseVehicle |
POST /vehicles/{vehicle_id}/breaks
Create a new break with the input payload
- application/json
- application/json
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
vehicle_id | path |
integer | int64 |
✓ | Vehicle ID | ||
Break | body |
DatabaseCreateBreakParams | models.DatabaseCreateBreakParams |
✓ | Create break |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
PostVehiclesVehicleIDBreaksOKBody
Status: Bad Request
PostVehiclesVehicleIDBreaksOKBody
- composed type UtilSuccessResponse
- inlined member (postVehiclesVehicleIdBreaksOKBodyAO1)
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | DatabaseBreak | models.DatabaseBreak |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
created_at | string | string |
2021-12-01T13:00:00 |
|||
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
id | string | string |
1234567812345678 |
|||
service | string | string |
00:02:00 |
|||
time_windows | [][]string | [][]string |
||||
updated_at | string | string |
2021-12-01T13:00:00 |
|||
vehicle_id | string | string |
1234567812345678 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
service | string | string |
00:02:00 |
|||
time_windows | [][]string | [][]string |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
delivery | []integer | []int64 |
[10,20] |
|||
location | UtilLocationParams | UtilLocationParams |
✓ | |||
pickup | []integer | []int64 |
[5,15] |
|||
priority | integer | int64 |
10 |
|||
service | string | string |
00:02:00 |
|||
setup | string | string |
00:00:00 |
|||
skills | []integer | []int64 |
[1,5] |
|||
time_windows | [][]string | [][]string |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
duration_calc | string | string |
euclidean |
|||
exploration_level | integer | int64 |
5 |
|||
max_shift | string | string |
00:30:00 |
|||
name | string | string |
✓ | Sample Project |
||
timeout | string | string |
00:10:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
amount | []integer | []int64 |
[5,15] |
|||
d_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
d_location | UtilLocationParams | UtilLocationParams |
✓ | |||
d_service | string | string |
00:02:00 |
|||
d_setup | string | string |
00:00:00 |
|||
d_time_windows | [][]string | [][]string |
||||
p_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
p_location | UtilLocationParams | UtilLocationParams |
✓ | |||
p_service | string | string |
00:02:00 |
|||
p_setup | string | string |
00:00:00 |
|||
p_time_windows | [][]string | [][]string |
||||
priority | integer | int64 |
10 |
|||
skills | []integer | []int64 |
[1,5] |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
capacity | []integer | []int64 |
[50,25] |
|||
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
end_location | UtilLocationParams | UtilLocationParams |
✓ | |||
max_tasks | integer | int64 |
20 |
|||
skills | []integer | []int64 |
[1,5] |
|||
speed_factor | number | float64 |
1 |
|||
start_location | UtilLocationParams | UtilLocationParams |
✓ | |||
tw_close | string | string |
2021-12-31T23:59:00 |
|||
tw_open | string | string |
2021-12-31T23:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
created_at | string | string |
2021-12-01T13:00:00 |
|||
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
delivery | []integer | []int64 |
[10,20] |
|||
id | string | string |
1234567812345678 |
|||
location | UtilLocationParams | UtilLocationParams |
||||
pickup | []integer | []int64 |
[5,15] |
|||
priority | integer | int64 |
10 |
|||
project_id | string | string |
1234567812345678 |
|||
service | string | string |
00:02:00 |
|||
setup | string | string |
00:00:00 |
|||
skills | []integer | []int64 |
[1,5] |
|||
time_windows | [][]string | [][]string |
||||
updated_at | string | string |
2021-12-01T13:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
created_at | string | string |
2021-12-01T13:00:00 |
|||
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
duration_calc | string | string |
euclidean |
|||
exploration_level | integer | int64 |
5 |
|||
id | string | string |
1234567812345678 |
|||
max_shift | string | string |
00:30:00 |
|||
name | string | string |
Sample Project |
|||
timeout | string | string |
00:10:00 |
|||
updated_at | string | string |
2021-12-01T13:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
amount | []integer | []int64 |
[5,15] |
|||
created_at | string | string |
2021-12-01T13:00:00 |
|||
d_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
d_location | UtilLocationParams | UtilLocationParams |
||||
d_service | string | string |
00:02:00 |
|||
d_setup | string | string |
00:00:00 |
|||
d_time_windows | [][]string | [][]string |
||||
id | string | string |
1234567812345678 |
|||
p_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
p_location | UtilLocationParams | UtilLocationParams |
||||
p_service | string | string |
00:02:00 |
|||
p_setup | string | string |
00:00:00 |
|||
p_time_windows | [][]string | [][]string |
||||
priority | integer | int64 |
10 |
|||
project_id | string | string |
1234567812345678 |
|||
skills | []integer | []int64 |
[1,5] |
|||
updated_at | string | string |
2021-12-01T13:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
delivery | []integer | []int64 |
[10,20] |
|||
location | UtilLocationParams | UtilLocationParams |
||||
pickup | []integer | []int64 |
[5,15] |
|||
priority | integer | int64 |
10 |
|||
service | string | string |
00:02:00 |
|||
setup | string | string |
00:00:00 |
|||
skills | []integer | []int64 |
[1,5] |
|||
time_windows | [][]string | [][]string |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
amount | []integer | []int64 |
[5,15] |
|||
d_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
d_location | UtilLocationParams | UtilLocationParams |
||||
d_service | string | string |
00:02:00 |
|||
d_setup | string | string |
00:00:00 |
|||
d_time_windows | [][]string | [][]string |
||||
p_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
p_location | UtilLocationParams | UtilLocationParams |
||||
p_service | string | string |
00:02:00 |
|||
p_setup | string | string |
00:00:00 |
|||
p_time_windows | [][]string | [][]string |
||||
priority | integer | int64 |
10 |
|||
skills | []integer | []int64 |
[1,5] |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
capacity | []integer | []int64 |
[50,25] |
|||
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
end_location | UtilLocationParams | UtilLocationParams |
||||
max_tasks | integer | int64 |
20 |
|||
skills | []integer | []int64 |
[1,5] |
|||
speed_factor | number | float64 |
1 |
|||
start_location | UtilLocationParams | UtilLocationParams |
||||
tw_close | string | string |
2021-12-31T23:59:00 |
|||
tw_open | string | string |
2021-12-31T23:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
capacity | []integer | []int64 |
[50,25] |
|||
created_at | string | string |
2021-12-01T13:00:00 |
|||
data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
end_location | UtilLocationParams | UtilLocationParams |
||||
id | string | string |
1234567812345678 |
|||
max_tasks | integer | int64 |
20 |
|||
project_id | string | string |
1234567812345678 |
|||
skills | []integer | []int64 |
[1,5] |
|||
speed_factor | number | float64 |
1 |
|||
start_location | UtilLocationParams | UtilLocationParams |
||||
tw_close | string | string |
2021-12-31T23:59:00 |
|||
tw_open | string | string |
2021-12-31T23:00:00 |
|||
updated_at | string | string |
2021-12-01T13:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | string | string |
400 |
|||
errors | []string | []string |
["Error message1","Error message2"] |
|||
message | string | string |
Bad Request |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
latitude | number | float64 |
✓ | 2.0365 |
||
longitude | number | float64 |
✓ | 48.6113 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
summary | []UtilScheduleSummary | []*UtilScheduleSummary |
||||
total_service | string | string |
00:10:00 |
|||
total_setup | string | string |
00:05:00 |
|||
total_travel | string | string |
01:00:00 |
|||
total_waiting | string | string |
00:30:00 |
|||
unassigned | []UtilScheduleUnassigned | []*UtilScheduleUnassigned |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | string | string |
404 |
|||
error | string | string |
Not Found |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
arrival | string | string |
2021-12-01T13:00:00 |
|||
created_at | string | string |
2021-12-01T13:00:00 |
|||
departure | string | string |
2021-12-01T13:00:00 |
|||
load | []integer | []int64 |
[0,0] |
|||
location | UtilLocationParams | UtilLocationParams |
||||
project_id | string | string |
1234567812345678 |
|||
service_time | string | string |
00:02:00 |
|||
setup_time | string | string |
00:00:00 |
|||
task_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
task_id | string | string |
1234567812345678 |
|||
travel_time | string | string |
00:16:40 |
|||
type | string | string |
job |
|||
updated_at | string | string |
2021-12-01T13:00:00 |
|||
vehicle_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
vehicle_id | string | string |
1234567812345678 |
|||
waiting_time | string | string |
00:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
metadata | UtilMetadataResponse | UtilMetadataResponse |
||||
project_id | string | string |
1234567812345678 |
|||
schedule | []UtilScheduleResponse | []*UtilScheduleResponse |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
project_id | string | string |
1234567812345678 |
|||
schedule | []UtilScheduleResponse | []*UtilScheduleResponse |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
route | []UtilScheduleRoute | []*UtilScheduleRoute |
||||
vehicle_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
vehicle_id | string | string |
0 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
arrival | string | string |
2021-12-01T13:00:00 |
|||
created_at | string | string |
2021-12-01T13:00:00 |
|||
departure | string | string |
2021-12-01T13:00:00 |
|||
load | []integer | []int64 |
[0,0] |
|||
location | UtilLocationParams | UtilLocationParams |
||||
service_time | string | string |
00:02:00 |
|||
setup_time | string | string |
00:00:00 |
|||
task_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
task_id | string | string |
1234567812345678 |
|||
travel_time | string | string |
00:16:40 |
|||
type | string | string |
job |
|||
updated_at | string | string |
2021-12-01T13:00:00 |
|||
waiting_time | string | string |
00:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
service_time | string | string |
00:02:00 |
|||
setup_time | string | string |
00:00:00 |
|||
travel_time | string | string |
00:16:40 |
|||
vehicle_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
vehicle_id | string | string |
1234567812345678 |
|||
waiting_time | string | string |
00:00:00 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
location | UtilLocationParams | UtilLocationParams |
||||
task_data | map of string | map[string]string |
{"key1":"value1","key2":"value2"} |
|||
task_id | string | string |
1234567812345678 |
|||
type | string | string |
job |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | string | string |
200 |
|||
message | string | string |
OK |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | string | string |
200 |
|||
data | interface{} | interface{} |
||||
message | string | string |
OK |