-
Notifications
You must be signed in to change notification settings - Fork 2
3. API Document
Sanjoy Kumer Deb edited this page Oct 18, 2017
·
3 revisions
Path :[POST] HOST_NAME:8080/place
- Request:
| Parameter | Type | Condition |
|---|---|---|
| name | String | Mandatory |
| code | String | Mandatory |
| latitude | Double | Mandatory |
| longitude | Double | Mandatory |
- Response :
Response contain integer id in plain format
Path: [POST] HOST_NAME:8080/path
- Request:
| Parameter | Type | Condition |
|---|---|---|
| from | String | Mandatory |
| to | String | Mandatory |
| cost | Double | Mandatory |
| containerSize | NUmber | Mandatory |
| routeType | String | Mandatory |
| duration | Number | Mandatory |
- Response: Response contain integer id in plain format
Path: [POST] HOST_NAME:8080**/path/find-all-path**
- Request:
| Param | Type | Condition |
|---|---|---|
| source | String | Mandatory |
| destination | String | Mandatory |
| modeOfTransports | StringArray | Mandatory |
| containerSize | Number | Mandatory |
| durationFrom | Number | Optional |
| durationTo | NUmber | Optional |
| costFrom | NUmber | Optional |
| costTo | Number | Optional |
- Response Here json format given
{
"results": [
{
"route": [
{
"from": "Stockholm",
"to": "Gothenburg",
"transportType": "Road",
"cost": 420,
"duration": 1
}
],
"totalCost": 420,
"totalDuration": 1
}
]
}