jellyfin/MediaBrowser.Common
2013-02-22 19:22:39 +00:00
..
Events extracted more logging dependancies 2013-02-21 16:06:23 -05:00
Extensions isolated clickonce dependancies 2013-02-21 23:23:06 -05:00
IO Removed System.Windows.Forms dependancy from Common. Almost done removing NLog dependancy. 2013-02-21 20:26:35 -05:00
Kernel created IWebSocketListener 2013-02-22 10:16:48 -05:00
Localization Pushing missing changes 2013-02-20 20:33:05 -05:00
Mef Pushing missing changes 2013-02-20 20:33:05 -05:00
Net isolated clickonce dependancies 2013-02-21 23:23:06 -05:00
Plugins moved Plugins to separate repo 2013-02-22 01:28:57 -05:00
Progress Pushing missing changes 2013-02-20 20:33:05 -05:00
Properties added a master version file 2013-02-22 02:17:50 -05:00
ScheduledTasks isolated clickonce dependancies 2013-02-21 23:23:06 -05:00
Serialization Removed System.Windows.Forms dependancy from Common. Almost done removing NLog dependancy. 2013-02-21 20:26:35 -05:00
swagger-ui Pushing missing changes 2013-02-20 20:33:05 -05:00
Win32 Pushing missing changes 2013-02-20 20:33:05 -05:00
app.config Updated reactive extensions 2012-08-24 08:05:31 -04:00
MediaBrowser.Common.csproj Set the Common, Controller, Model, UI and UI.Controls to go into one folder, set nuspec files up for the packages to make it easier to create nuget packages. 2013-02-22 19:22:39 +00:00
packages.config Pushing missing changes 2013-02-20 20:33:05 -05:00
README.txt Pushing missing changes 2013-02-20 20:33:05 -05:00

ServiceStack services should be available under '/api' path. If it's a brand new MVC project 
install NuGet Package: ServiceStack.Host.Mvc. The package prepares ServiceStack default services. Make sure 
that you added ignore for MVC routes:

	routes.IgnoreRoute("api/{*pathInfo}"); 

If it's MVC4 project, then don't forget to disable WebAPI:

	//WebApiConfig.Register(GlobalConfiguration.Configuration);
 
Enable Swagger plugin in AppHost.cs with:

    public override void Configure(Container container)
    {
		...

        Plugins.Add(new SwaggerFeature());
		// uncomment CORS feature if it's has to be available from external sites 
        //Plugins.Add(new CorsFeature()); 
		...

    }

Compile it. Now you can access swagger UI with:

http://localost:port/swagger-ui/index.html

or

http://yoursite/swagger-ui/index.html


For more info about ServiceStack please visit: http://www.servicestack.net

Feel free to ask questions about ServiceStack on:
http://stackoverflow.com/

or on the mailing Group at:
http://groups.google.com/group/servicestack

Enjoy!