SLnet.WebExtApi

<back to all web services

ExecuteCustomView

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}/custom/{CustomViewName}Executes the given View and returns the results

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/ExecuteCustomView HTTP/1.1 
Host: 5.172.198.40 
Content-Type: text/csv
Content-Length: length

CustomViewName,fields,sortBy,skip,take,filters,quickfilters,inArgs,ViewName,DomainName
String,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.