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 .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 /jsv/reply/Question HTTP/1.1 
Host: redisstackoverflow.servicestack.net 
Content-Type: text/jsv
Content-Length: length

{
	Id: 0,
	UserId: 0,
	Title: String,
	Content: String,
	CreatedDate: 0001-01-01,
	Tags: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: 
	{
		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
		}
	}
}