StarterTemplate ASP.NET Host

<back to all web services

Author

The following routes are available for this service:
All Verbs/api/authors
Author Parameters:
NameParameterData TypeRequiredDescription
IdqueryintNo
NamequerystringNo
BirthdayqueryDateTimeNo
LastActivityqueryDateTime?No
Earningsquerydecimal?No
ActivequeryboolNo
CityquerystringNo
CommentsquerystringNo
RatequeryshortNo
AuthorResponse Parameters:
NameParameterData TypeRequiredDescription
Results1formList<Author>No
Results2formList<Author>No
Results3formList<Author>No
Results4formList<Author>No
Results5formList<Author>No
Results6formList<Author>No
Results7formList<Author>No
Results8formList<Author>No
ResponseStatusformResponseStatusNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/Author HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: application/json
Content-Length: length

{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"results1":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"results2":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"results3":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"results4":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"results5":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"results6":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"results7":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"results8":[{"id":0,"name":"String","birthday":"\/Date(-62135596800000-0000)\/","lastActivity":"\/Date(-62135596800000-0000)\/","earnings":0,"active":false,"city":"String","comments":"String","rate":0}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}