jellyfin/MediaBrowser.Common
2013-02-22 19:44:20 -05: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 extracted more interfaces 2013-02-22 19:44:20 -05:00
Localization 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 added simple injector for dependancy management 2013-02-22 19:24:50 -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 Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser 2013-02-22 19:26:38 -05:00
packages.config added simple injector for dependancy management 2013-02-22 19:24:50 -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!