Created Change public transport api (markdown)
13
Change-public-transport-api.md
Normal file
13
Change-public-transport-api.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
**DISCLAIMER**: Advanced, avoid if you aren't good at C#
|
||||||
|
|
||||||
|
Open the project in preferrable IDE and edit those files:
|
||||||
|
|
||||||
|
**Update**:
|
||||||
|
- [ResRobotClient to make request to new api](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Integration/Client/ResRobotClient.cs)
|
||||||
|
- [Update To Contract Extension to map correctly](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Extensions/ContractExtensions.cs#L133)
|
||||||
|
|
||||||
|
**Replace**:
|
||||||
|
- [TrafikLabsResponse](https://github.com/Myxelium/Wireless_Eink_HomeScreen/blob/master/HomeApi/Models/Response/TrafikLabsApiResponse.cs)
|
||||||
|
|
||||||
|
When it comes to the response model, you can simply try to make a request to their endpoint and copy the JSON.
|
||||||
|
For less pain in the ass, use https://json2csharp.com/ or other tool to recreate the model from JSON.
|
||||||
Reference in New Issue
Block a user