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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Page: 0,
	Tag: String,
	UserId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Results: 
	[
		{
			Question: 
			{
				Id: 0,
				UserId: 0,
				Title: String,
				Content: String,
				CreatedDate: 0001-01-01,
				Tags: 
				[
					String
				]
			},
			User: 
			{
				Id: 0,
				DisplayName: String
			},
			AnswersCount: 0,
			VotesUpCount: 0,
			VotesDownCount: 0,
			Answers: 
			[
				{
					Answer: 
					{
						Id: 0,
						QuestionId: 0,
						UserId: 0,
						CreatedDate: 0001-01-01,
						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
		}
	}
}