Redis StackOverflow

<back to all web services

Question

The following routes are available for this service:
POST/questions
All Verbs/questions/{Id}
Question Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNo
UserIdbodylongNo
TitlebodystringNo
ContentbodystringNo
CreatedDatebodyDateTimeNo
TagsbodyList<string>No
QuestionResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformQuestionResultNo
ResponseStatusformResponseStatusNo
QuestionResult Parameters:
NameParameterData TypeRequiredDescription
QuestionformQuestionNo
UserformUserNo
AnswersCountformlongNo
VotesUpCountformlongNo
VotesDownCountformlongNo
AnswersformList<AnswerResult>No
User Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
DisplayNameformstringNo
AnswerResult Parameters:
NameParameterData TypeRequiredDescription
AnswerformAnswerNo
UserformUserNo
Answer Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
QuestionIdformlongNo
UserIdformlongNo
CreatedDateformDateTimeNo
ContentformstringNo

To override the Content-type in your clients, use the 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/Question HTTP/1.1 
Host: redisstackoverflow.servicestack.net 
Content-Type: text/csv
Content-Length: length

{"Id":0,"UserId":0,"Title":"String","Content":"String","CreatedDate":"\/Date(-62135596800000-0000)\/","Tags":["String"]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Result":{"Question":{"Id":0,"UserId":0,"Title":"String","Content":"String","CreatedDate":"\/Date(-62135596800000-0000)\/","Tags":["String"]},"User":{"Id":0,"DisplayName":"String"},"AnswersCount":0,"VotesUpCount":0,"VotesDownCount":0,"Answers":[{"Answer":{"Id":0,"QuestionId":0,"UserId":0,"CreatedDate":"\/Date(-62135596800000-0000)\/","Content":"String"},"User":{"Id":0,"DisplayName":"String"}}]},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}