SLnet.WebExtApi

<back to all web services

ExecuteViewByID

Generic API

The following routes are available for this service:
GET/api/{DomainName}/views/{ViewName}Executes the given View and returns the results
GET/api/{DomainName}/views/{ViewName}/{ID}Executes the given View for the specified ID

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/ExecuteViewByID HTTP/1.1 
Host: 5.172.198.40 
Content-Type: text/csv
Content-Length: length

ID,IncludeDynDetails,fields,sortBy,skip,take,filters,quickfilters,inArgs,ViewName,DomainName
String,False,String,String,0,0,[{String:{}}],String,{String:{}},String,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'DataSet' using the custom 'csv' filter}The type initializer for 'ServiceStack.Text.CsvWriter`1' threw an exception.