README.txt 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ServiceStack services should be available under '/api' path. If it's a brand new MVC project
  2. install NuGet Package: ServiceStack.Host.Mvc. The package prepares ServiceStack default services. Make sure
  3. that you added ignore for MVC routes:
  4. routes.IgnoreRoute("api/{*pathInfo}");
  5. If it's MVC4 project, then don't forget to disable WebAPI:
  6. //WebApiConfig.Register(GlobalConfiguration.Configuration);
  7. Enable Swagger plugin in AppHost.cs with:
  8. public override void Configure(Container container)
  9. {
  10. ...
  11. Plugins.Add(new SwaggerFeature());
  12. // uncomment CORS feature if it's has to be available from external sites
  13. //Plugins.Add(new CorsFeature());
  14. ...
  15. }
  16. Compile it. Now you can access swagger UI with:
  17. http://localost:port/swagger-ui/index.html
  18. or
  19. http://yoursite/swagger-ui/index.html
  20. For more info about ServiceStack please visit: http://www.servicestack.net
  21. Feel free to ask questions about ServiceStack on:
  22. http://stackoverflow.com/
  23. or on the mailing Group at:
  24. http://groups.google.com/group/servicestack
  25. Enjoy!