11

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.

Amirhossein Mehrvarzi
  • 18,024
  • 7
  • 45
  • 70
mare
  • 13,033
  • 24
  • 102
  • 191
  • Only StackOverflow Careers backoffice API's are implemented with ServiceStack. StackOverflow API's use vanilla ASP.NET MVC. – mythz Feb 13 '14 at 13:50
  • well then, still hopefully someone responds how they implemented the wrapper functionality, what best practices are to follow when doing that, how they handle paging, qouta etc. – mare Feb 13 '14 at 14:32
  • May I want you place what we have and what we want? It seems amazing question – Amirhossein Mehrvarzi Jun 10 '15 at 07:37

1 Answers1

3

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.

Community
  • 1
  • 1
Leonid Vasilev
  • 11,910
  • 4
  • 36
  • 50
  • Leonid, this may be useful, but does not constitute an answer. Links are good for comments. An answer can contain a link but should also include code samples and explanation. If you want to create an answer, study the links and add relevant pseudo code. – Dave Alperovich Jun 15 '15 at 19:10