StarterTemplate ASP.NET Host

<back to all web services

Users

The following routes are available for this service:
All Verbs/api/users/{UserIds}
Users Parameters:
NameParameterData TypeRequiredDescription
UserIdspathint[]No
UsersResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<UserInfo>No
ResponseStatusformResponseStatusNo
UserInfo Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserNameformstringNo
DisplayNameformstringNo
TwitterUserIdformstringNo
TwitterScreenNameformstringNo
FacebookUserIdformstringNo
ProfileImageUrl64formstringNo

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/Users HTTP/1.1 
Host: bootstrapapi.servicestack.net 
Content-Type: application/json
Content-Length: length

{"userIds":[0]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"results":[{"id":0,"userName":"String","displayName":"String","twitterUserId":"String","twitterScreenName":"String","facebookUserId":"String","profileImageUrl64":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}