M
M
Maxim2013-10-30 20:59:19
Microsoft
Maxim, 2013-10-30 20:59:19

Simple restful web service

Tell me how, under Windows (preferably under .Net), you can quickly, easily and naturally raise a very simple restful web service for use in the intranet? Preferably using something scripted (powershell, for example, googled but didn’t find anything sensible).
Here is something similar, but everything is too fancy - habrahabr.ru/company/netwrix/blog/166799/

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
ap3rus, 2013-10-30
@ap3rus

Everything is very simple, for this you will need a Windows computer, the Internet Information Services component installed from the control panel, Visual Studio (you can get the free version of Visual Studio Express for Web here ), hands and this simple and intelligible example . There will be more questions - write :)

D
Dmitry Guketlev, 2013-10-31
@Yavanosta

A lot has changed since then. No need to mess with WCF. If you just need it, then it will be an overkill. For restful web services there is www.asp.net/web-api . Everything is generally simple there. Return an object from the controller, and everything else, including serialization (in json or xml), is done by .net for you.
If you return IQuerable, you will also get OData support out of the box www.asp.net/web-api/overview/odata-support-in-aspnet-web-api

M
Maxim, 2013-11-16
@mgramin

Found just such a thing - http://www.servicestack.net/
Who can say anything about it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question