Redis StackOverflow

<back to all web services

Questions

The following routes are available for this service:
GET/questions
All Verbs/questions/page/{Page}
All Verbs/questions/tagged/{Tag}
All Verbs/users/{UserId}/questions
Questions Parameters:
NameParameterData TypeRequiredDescription
Pagepathint?No
TagpathstringNo
UserIdpathlong?No
QuestionsResponse Parameters:
NameParameterData TypeRequiredDescription
ResultsformList<QuestionResult>No
ResponseStatusformResponseStatusNo
QuestionResult Parameters:
NameParameterData TypeRequiredDescription
QuestionformQuestionNo
UserformUserNo
AnswersCountformlongNo
VotesUpCountformlongNo
VotesDownCountformlongNo
AnswersformList<AnswerResult>No
Question Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
UserIdformlongNo
TitleformstringNo
ContentformstringNo
CreatedDateformDateTimeNo
TagsformList<string>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 .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 /questions/page/{Page} HTTP/1.1 
Host: redisstackoverflow.netcore.io 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Page":0,"Tag":"String","UserId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Results":[{"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"}}}