Field Squared API Services

<back to all web services

PublicIp

The following routes are available for this service:
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; }
    }

}

Java PublicIp DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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/xml