|
|
|
|
|
by CptKriechstrom
1828 days ago
|
|
Seems like a Solution in search for a Problem. Instead of hardcoding the URL to the Request it can be set in the config like it was done with jsonplaceholder.api.token. And creating a Request for every API-Endpoint instead of a single API-Client Class seems overkill. |
|
I think it loses its effectiveness/value if you're using it for 20 different requests that are only used once each, but for a scenario where you're making 1 request in 10 different places like you might be with geocoding, it's not a bad implementation in my opinion.