Journey Planner - (get) line_list not working as expected?
When attempting to use line_list_branch_code in the journeyplanner api endpoint, and using the integer values that are expected out of the API:
```
andrew@Andrews-MacBook-Pro: ~
$ curl -s 'https://journeyplanner.integration.sl.se/v2/line-list?line_list_subnetwork=tfs&line_list_branch_code=1' -H 'accept: application/json'
{
"transportations": [
]
}%
andrew@Andrews-MacBook-Pro: ~
$ curl -s 'https://journeyplanner.integration.sl.se/v2/line-list?line_list_subnetwork=tfs&line_list_branch_code=2' -H 'accept: application/json'
{
"transportations": [
]
}%
andrew@Andrews-MacBook-Pro: ~
$ curl -s 'https://journeyplanner.integration.sl.se/v2/line-list?line_list_subnetwork=tfs&line_list_branch_code=3' -H 'accept: application/json'
{
"transportations": [
]
}%
andrew@Andrews-MacBook-Pro: ~
$ curl -s 'https://journeyplanner.integration.sl.se/v2/line-list?line_list_subnetwork=tfs&line_list_branch_code=4' -H 'accept: application/json'
{
"transportations": [
]
}%
```
However, if I query without the line_list_branch_code, it works fine, however according to the OpenAPI spec/docs:
However, when not specifying a single item, it returns 800KB of responses (see attached):
```
$ curl -s 'https://journeyplanner.integration.sl.se/v2/line-list?line_list_subnetwork=tfs' -H 'accept: application/json' |
head -n 20
{
"transportations": [
{
"destination": {
"name": "Liljeholmen, Stockholm",
"type": "stop"
},
"disassembledName": "5",
"id": "tfs:01005: :H:y01",
"name": "Buss Buss 5",
"number": "Buss 5",
"operator": {
"id": "1",
"name": "Storstockholms Lokaltrafik"
},
"product": {
"class": 5,
"iconId": 3,
"id": 3,
"name": "Buss"
```
It this working as expected? I have tried multiple attempts with (and without) merge_dir, but it seems to still not work and not return any results, regardless of the integer being passed.
Borttagen kommentar