noi-techpark / it.bz.opendatahub.api.mobility-ninja

The new home of the Open Data Hub Mobility API v2
Other
2 stars 0 forks source link

As an Open Data Hub manager I would like to promote the routing API EFA of STA by doing a proxy of the domain #29

Closed rcavaliere closed 1 year ago

rcavaliere commented 1 year ago

Documentation of the EFA API: http://daten.buergernetz.bz.it/dataset/southtyrolean-public-transport

Expected behavior: http://efa.sta.bz.it/apb/XML_TRIP_REQUEST2 becomes mobility.api.opendatahub.bz.it/v2/XML_TRIP_REQUEST2

This should apply to all methods and API calls supported by the EFA API

dulvui commented 1 year ago

@rcavaliere It works now on testingmachine https://mobility.api.opendatahub.testingmachine.eu/v2/XML_TRIP_REQUEST2 If everything is fine we can also set it in production

rcavaliere commented 1 year ago

@dulvui many thanks. Yes, works as expected!

Please do this for all methods exposed by EFA, namely:

Please consider that the request to the API can be vary configurable, as you can read here: https://data.civis.bz.it//dataset/575f7455-6447-4626-a474-0f93ff03067b/resource/c4e66cdf-7749-40ad-bcfd-179f18743d84/download/dokumentationxmlschnittstelleapbv32014-08-28.pdf

Are we manage to support all these kind of requests?

dulvui commented 1 year ago

@rcavaliere I created now all other methods aswell:

The request should works as expected because we forward all parameters to STA endpoint. But I was not able to test specific requests because the documentation is quite big and I din't find example calls, I only checked if the endpoint gives the same default response as the STA endpoint. Do you have some example calls I can try?

rcavaliere commented 1 year ago

@dulvui wonderful!

You can check suedtirolmobil in order to have some basic examples of requests:

So please add also:

And let's test these calls with the new prefix. If all these calls work, then we can close the task.

dulvui commented 1 year ago

@rcavaliere I added also https://mobility.api.opendatahub.testingmachine.eu/v2/XML_COORD_REQUEST now and test all your examples by simply replacing https://efa.sta.bz.it/web/ with https://mobility.api.opendatahub.testingmachine.eu/v2/ and it all give the same result. But this is now working only on testingmachine. Should we implement it also in production with https://mobility.api.opendatahub.com/v2 before closing the task?

rcavaliere commented 1 year ago

Yes of course, I put the task in the "Release on Production" lane

dulvui commented 1 year ago

@rcavaliere It is now also live in production on mobility.api.opendatahub.com