Pera ServiceStack

<back to all web services

ListRequest

The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/List
GET,POST,PUT,DELETE,OPTIONS/v1/List/{ListId}

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/ListRequest HTTP/1.1 
Host: api2.publicemployeeretirementassistance.com 
Content-Type: text/csv
Content-Length: length

List,NameIdOnly,Query
"[{ListId:0,ListName:String,Note:String,CreatedBy:String,DateCreated:0001-01-01,OptOut:False,OptOutDate:0001-01-01,Deleted:False,DeletedDate:0001-01-01,RequiresMapping:False,ModifiedBy:String}]",False,String

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

ResponseStatus,List
"{ErrorCode:String,Message:String,StackTrace:String,Errors:[{ErrorCode:String,FieldName:String,Message:String}]}","[{ListId:0,ListName:String,Note:String,CreatedBy:String,DateCreated:0001-01-01,OptOut:False,OptOutDate:0001-01-01,Deleted:False,DeletedDate:0001-01-01,RequiresMapping:False,ModifiedBy:String}]"