Since recently some people have brought up issues and questions regarding "Rest API accessing" again, with various false or incorrect information floating around, it is time to clear up things about "how TinyPedal accesses Rest API", and whether it is safe to enable "Rest API accessing" in TinyPedal, for the final time.
The Question:
Can TinyPedal change or modify game data by accessing Rest API?
The Answer:
No, TinyPedal cannot do that. Same with "shared memory API", TinyPedal only reads API data from "Rest API", TinyPedal does not change or modify game API data.
There is a common misunderstanding that accessing LMU's Rest API can cause game setting to be changed, but this is not entirely true.
Rest API uses specific HTTP methods, notably the "GET", "POST", "PUT", "DELETE" methods, where only "POST", "PUT", "DELETE" methods can modify game API data, while "GET" method can only retrieve and read data. That means any third party software that uses one of the "POST", "PUT", "DELETE" methods can modify API data, while "GET" method cannot.
However, in TinyPedal, Rest API accessing is solely based on "HTTP GET" method (feel free to check out source code if in doubt), which only retrieves data from game API, and this "HTTP GET" method cannot change or modify game API data, as mentioned above.
If you see game API/data changed, check out other "third party software" or "plugins" that may have been accessing game's Rest API using "POST", "PUT", or "DELETE" methods which may cause unwanted issues.
For those still hold doubts, you can always disable Rest API accessing by turning off "Enable RestAPI Access" option in "Telemetry API" dialog.
Some reference links to HTTP methods, explanations, and specifications:
-
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods
-
https://httpwg.org/specs/rfc9110.html#GET
Additional notes to the known "LMU MFD pitstop menu flickering" issue:
Since TinyPedal only uses "HTTP GET" method, it cannot change pitstop menu setting, so the flickering is only "visual", as long as you use TinyPedal only.
However, if there are other third party software or plugins that are also running the same time and using "POST", "PUT", or "DELETE" methods, then those software or plugins can change game data (such as MFD setting) unexpectedly.
Tip: for those having trouble determine "replace brakes" value, you can determine whether "replace brakes" option is YES or NO by looking at "stop" column value from "Pit stop estimate Widget", see full explanation:
Tip to Replace Brakes flickering issue
As many know, the MFD "Replace Brakes" flickering issue has been a hot topic since LMU 1.0 update.
Many have been worrying about whether the MFD "Replace Brakes" "YES/NO" option is actually indicating YES or NO while flickering, which could potentially ruin race.
Here is a simple tip that may help you to determine whether "Replace Brakes" option is actually on YES or NO (regardless whether MFD is flickering):
1. Start TinyPedal, make sure "RestAPI" Module is enabled.
2. Enable "Pit Stop Estimate" widget.
3. Open in-game MFD Pitstop...
FAQ page is also updated:
Free and Open Source telemetry overlay application for racing simulation - TinyPedal/TinyPedal
github.com
Finally, as mentioned before, TinyPedal is open source project, all source code is available on project page, feel free to check them out.
Good luck and have fun
S.Victor