Skip to content

Commit

Permalink
Exclude Swagger and Postman services from SOAP
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed May 5, 2015
1 parent cd13c42 commit 9719f93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/ServiceStack.Api.Swagger/SwaggerApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Reflection;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using ServiceStack.DataAnnotations;
using ServiceStack.Host;
using ServiceStack.Web;

Expand All @@ -12,6 +13,7 @@ namespace ServiceStack.Api.Swagger
using ServiceStack.Api.Swagger.Support;

[DataContract]
[Exclude(Feature.Soap)]
public class ResourceRequest
{
[DataMember(Name = "apiKey")]
Expand Down
2 changes: 2 additions & 0 deletions src/ServiceStack/PostmanFeature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceStack.DataAnnotations;
using ServiceStack.Host;
using ServiceStack.Text;
using ServiceStack.Web;
Expand Down Expand Up @@ -51,6 +52,7 @@ public void Register(IAppHost appHost)
}
}

[Exclude(Feature.Soap)]
public class Postman
{
public List<string> Label { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions tests/ServiceStack.AuthWeb.Tests/AppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ private void ConfigureAuth(Container container)
//override the default registration validation with your own custom implementation
//Plugins.Add(new CustomRegisterPlugin());

//var authRepo = CreateOrmLiteAuthRepo(container, appSettings); //works with / or /basic
var authRepo = CreateOrmLiteAuthRepo(container, appSettings); //works with / or /basic
//var authRepo = CreateRavenDbAuthRepo(container, appSettings); //works with /basic
var authRepo = CreateRedisAuthRepo(container, appSettings); //works with /basic
//var authRepo = CreateRedisAuthRepo(container, appSettings); //works with /basic
//AuthProvider.ValidateUniqueUserNames = false;

try
Expand Down

0 comments on commit 9719f93

Please sign in to comment.