| GET | /PublicIp |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class PublicIp
{
public String ip = null;
public String remote_addr = null;
public String forwarded_for = null;
public String client_ip = null;
public String getIp() { return ip; }
public PublicIp setIp(String value) { this.ip = value; return this; }
public String getRemoteAddr() { return remote_addr; }
public PublicIp setRemoteAddr(String value) { this.remote_addr = value; return this; }
public String getForwardedFor() { return forwarded_for; }
public PublicIp setForwardedFor(String value) { this.forwarded_for = value; return this; }
public String getClientIp() { return client_ip; }
public PublicIp setClientIp(String value) { this.client_ip = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /PublicIp HTTP/1.1 Host: dev.fieldsquared.com Accept: application/json