All Verbs | /RestApi/search/settings | ||
---|---|---|---|
GET | /RestApi/search/settings |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SettingsRequest
{
public UUID IndexId = null;
public String SuggestionFields = null;
public String SectionName = null;
public String Text = null;
public Integer Take = null;
public Integer Skip = null;
public UUID getIndexId() { return IndexId; }
public SettingsRequest setIndexId(UUID value) { this.IndexId = value; return this; }
public String getSuggestionFields() { return SuggestionFields; }
public SettingsRequest setSuggestionFields(String value) { this.SuggestionFields = value; return this; }
public String getSectionName() { return SectionName; }
public SettingsRequest setSectionName(String value) { this.SectionName = value; return this; }
public String getText() { return Text; }
public SettingsRequest setText(String value) { this.Text = value; return this; }
public Integer getTake() { return Take; }
public SettingsRequest setTake(Integer value) { this.Take = value; return this; }
public Integer getSkip() { return Skip; }
public SettingsRequest setSkip(Integer value) { this.Skip = value; return this; }
}
public static class SettingsResponse
{
public ArrayList<SettingDto> Results = null;
public ArrayList<SettingDto> getResults() { return Results; }
public SettingsResponse setResults(ArrayList<SettingDto> value) { this.Results = value; return this; }
}
public static class SettingDto
{
public String Title = null;
public String SectionName = null;
public String FullSettingName = null;
public ArrayList<String> Path = null;
public String VisiblePath = null;
public String FullPath = null;
public String getTitle() { return Title; }
public SettingDto setTitle(String value) { this.Title = value; return this; }
public String getSectionName() { return SectionName; }
public SettingDto setSectionName(String value) { this.SectionName = value; return this; }
public String getFullSettingName() { return FullSettingName; }
public SettingDto setFullSettingName(String value) { this.FullSettingName = value; return this; }
public ArrayList<String> getPath() { return Path; }
public SettingDto setPath(ArrayList<String> value) { this.Path = value; return this; }
public String getVisiblePath() { return VisiblePath; }
public SettingDto setVisiblePath(String value) { this.VisiblePath = value; return this; }
public String getFullPath() { return FullPath; }
public SettingDto setFullPath(String value) { this.FullPath = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/search/settings HTTP/1.1
Host: www.asg.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SettingsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Search.Impl.Services.DTO">
<IndexId>00000000-0000-0000-0000-000000000000</IndexId>
<SectionName>String</SectionName>
<Skip>0</Skip>
<SuggestionFields>String</SuggestionFields>
<Take>0</Take>
<Text>String</Text>
</SettingsRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SettingsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Search.Impl.Services.DTO"> <Results> <SettingDto> <FullPath>String</FullPath> <FullSettingName>String</FullSettingName> <Path xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <SectionName>String</SectionName> <Title>String</Title> <VisiblePath>String</VisiblePath> </SettingDto> </Results> </SettingsResponse>