All Verbs | /customers |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Customers | form | List<Customer> | No | |
ResponseStatus | form | ResponseStatus | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | string | No | |
CompanyName | form | string | No | |
ContactName | form | string | No | |
ContactTitle | form | string | No | |
Address | form | string | No | |
City | form | string | No | |
Region | form | string | No | |
PostalCode | form | string | No | |
Country | form | string | No | |
Phone | form | string | No | |
Fax | form | string | No |
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.
POST /customers HTTP/1.1
Host: northwind.servicestack.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Customers":[{"Id":"String","CompanyName":"String","ContactName":"String","ContactTitle":"String","Address":"String","City":"String","Region":"String","PostalCode":"String","Country":"String","Phone":"String","Fax":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}