| GET | /{Workspace}/Search |
|---|
export class NamedItem
{
public Workspace: string;
public ObjectId: string;
public Class: string;
public VersionId: string;
public Name: string;
public LastUpdated: string;
public constructor(init?: Partial<NamedItem>) { (Object as any).assign(this, init); }
}
/** @description This service needs to be called with a query filter. It will fail otherwise. Usage is /{Workspace}/Search?QUERY=John Smith (where John Smith is the text query to use for the search). CLASSES=classlist (where classlist is an optional comma separated list of classes to search. i.e. Document,Task,Contact,Feedback If this parameter is not specified, all classes are searched. */
export class Search
{
public Workspace: string;
public DateGenerated: string;
public Results: NamedItem[];
public constructor(init?: Partial<Search>) { (Object as any).assign(this, init); }
}
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 /{Workspace}/Search HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv