| GET | /v1/forms/office/lookup/{Src} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormOfficeLookupRequest
{
public String Src = null;
public String Q = null;
public String getSrc() { return Src; }
public FormOfficeLookupRequest setSrc(String value) { this.Src = value; return this; }
public String getQ() { return Q; }
public FormOfficeLookupRequest setQ(String value) { this.Q = value; return this; }
}
public static class FormOfficeLookupResponse
{
public ArrayList<String> Names = new ArrayList<String>();
public Boolean More = null;
public ResponseStatus ResponseStatus = null;
public ArrayList<String> getNames() { return Names; }
public FormOfficeLookupResponse setNames(ArrayList<String> value) { this.Names = value; return this; }
public Boolean isMore() { return More; }
public FormOfficeLookupResponse setMore(Boolean value) { this.More = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public FormOfficeLookupResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
Java FormOfficeLookupRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/forms/office/lookup/{Src} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Names":["String"],"More":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}