Answer the question
In order to leave comments, you need to log in
Not a valid Retrofit2 request: HTTP 404 Not found?
Good day.
The essence of the question is that there is a GET request. URL: https://api.privatbank.ua/p24api/infrastructure?js...
When executed, I constantly get HTTP 404 Not found.
How can I specify this part of "json&atm" in the retrofit request?
In the interface, I specified the request in this way:
@GET("infrastructure")
Observable<List<AtmData>> getAtmDataByCity(
@Query("json&atm&address") String address,
@Query("city") String city
);
@GET("infrastructure?json&atm")
Observable<List<AtmData>> getAtmDataByCity(
@Query("address") String address,
@Query("city") String city
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question