jellyfin/MediaBrowser.Common
2013-02-21 00:00:56 -05:00
..
Api Pushing missing changes 2013-02-20 20:33:05 -05:00
Drawing Pushing missing changes 2013-02-20 20:33:05 -05:00
Events Pushing missing changes 2013-02-20 20:33:05 -05:00
Extensions Pushing missing changes 2013-02-20 20:33:05 -05:00
IO Pushing missing changes 2013-02-20 20:33:05 -05:00
Kernel isolated DotNetZip dependancy 2013-02-21 00:00:56 -05:00
Localization Pushing missing changes 2013-02-20 20:33:05 -05:00
Logging Pushing missing changes 2013-02-20 20:33:05 -05:00
Mef Pushing missing changes 2013-02-20 20:33:05 -05:00
Net remove core plugin output from source control 2013-02-20 21:40:36 -05:00
Plugins Pushing missing changes 2013-02-20 20:33:05 -05:00
Progress Pushing missing changes 2013-02-20 20:33:05 -05:00
Properties Pushing missing changes 2013-02-20 20:33:05 -05:00
Resources/Images Pushing missing changes 2013-02-20 20:33:05 -05:00
ScheduledTasks Pushing missing changes 2013-02-20 20:33:05 -05:00
Serialization Pushing missing changes 2013-02-20 20:33:05 -05:00
swagger-ui Pushing missing changes 2013-02-20 20:33:05 -05:00
UI isolated sqlite dependancy 2013-02-20 23:37:50 -05:00
Updates 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 Pushing missing changes 2013-02-20 20:33:05 -05: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!