I have a spring REST api running locally on my computer. I would like to consume this api for android development.
Here is my get request:
public stati
Your rest url must be something like this - http://localhost:8080/yourRest/restMethod
.
Instead of localhost url connect your mobile and local machine on same network(wifi network). Get the ip address of your local machine e.g 192.168.1.X ...so now your end point url for rest will be http://192.168.1.X:8080/yourRest/restMethod