Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does StackExchange API implements the common wrapper object?

How do they do this http://api.stackexchange.com/docs/wrapper ? I am aware that these are ServiceStack driven APIs but some code samples would be nice.

I want to implement something similar but with ASP.NET Web API.

Still if someone can provide StackExchange code implemented with ServiceStack, for example and reference only, that would work too.

like image 267
mare Avatar asked Feb 13 '14 13:02

mare


1 Answers

You can gain some understanding of internal structure by exploring StacMan client library. Wrapper and StacManResponse classes in particular.

Update: There are also series of articles from Kevin Montrose about StackExchange API evolution and nuances: Stack Exchange API V2.0: Consistency, History Of The Stack Exchange API, Mistakes for example.
StackExchange performance page contains information about programming stack used, which is: C# + ASP.net MVC, Dapper ORM, StackExchange.Redis, DotNetOpenAuth, MiniProfiler, Jil. And The Architecture of Stack Overflow video contains information about some of SO software development principles.

like image 101
Leonid Vasilev Avatar answered Nov 15 '22 23:11

Leonid Vasilev