Skip to content

Commit

Permalink
Swagger is accessible as NuGet package
Browse files Browse the repository at this point in the history
Added default swagger-ui to package
StackExpress generates Swagger plugin
  • Loading branch information
desunit committed Dec 12, 2012
1 parent 6229a15 commit bbbd0a5
Show file tree
Hide file tree
Showing 28 changed files with 36 additions and 3,210 deletions.
1 change: 1 addition & 0 deletions NuGet/NuGetPack.cmd
@@ -1,6 +1,7 @@
nuget pack ServiceStack\servicestack.nuspec -symbols
nuget pack ServiceStack.Common\servicestack.common.nuspec -symbols
nuget pack ServiceStack.Mvc\servicestack.mvc.nuspec -symbols
nuget pack ServiceStack.Api.Swagger\servicestack.api.swagger.nuspec -symbols
nuget pack ServiceStack.Razor\servicestack.razor.nuspec -symbols

nuget pack ServiceStack.Host.AspNet\servicestack.host.aspnet.nuspec
Expand Down
13 changes: 13 additions & 0 deletions build/build.msbuild
Expand Up @@ -92,6 +92,8 @@
<StackExpressPluginsMsgPackFiles Include="$(BuildSolutionDir)/lib/MsgPack.dll"></StackExpressPluginsMsgPackFiles>

<StackExpressClientSilverlightFiles Include="$(SrcDir)/ServiceStack.Client.Silverlight/bin/$(Configuration)/ServiceStack.Client.Silverlight.*"></StackExpressClientSilverlightFiles>

<StackExpressSwaggerFiles Include="$(SrcDir)/ServiceStack.Api.Swagger/bin/$(Configuration)/ServiceStack.Api.Swagger.*"></StackExpressSwaggerFiles>
</ItemGroup>


Expand Down Expand Up @@ -176,6 +178,17 @@
<Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Plugins.MsgPack/stackexpress.plugins.msgpack.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
LogStandardErrorAsError="true" />

<!-- StackExpress.Api.Swagger -->

<MSBuild Projects="$(BuildSolutionDir)/src/ServiceStack.Api.Swagger/ServiceStack.Api.Swagger.csproj"
Targets="Build"
Properties="BuildPackage=true;Version=$(PackageVersion);Configuration=$(Configuration)" />

<Copy SourceFiles="%(StackExpressSwaggerFiles.Identity)" DestinationFolder="$(NuGetPackageDir)/ServiceStack.Api.Swagger/lib/net35" />

<Exec Command="&quot;$(NuGetPath)&quot; pack &quot;$(NuGetPackageDir)/ServiceStack.Api.Swagger/stackexpress.api.swagger.nuspec&quot; -OutputDirectory &quot;$(NuGetPackageDir)&quot; -Version $(PackageVersion)"
LogStandardErrorAsError="true" />

</Target>

</Project>
@@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("3.9.22.0")]
[assembly: AssemblyFileVersion("3.9.22.0")]
Expand Up @@ -8,8 +8,8 @@
<ProjectGuid>{01D3F057-7984-498F-8B0A-EB375701E204}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ServiceStack.Swagger</RootNamespace>
<AssemblyName>ServiceStack.Swagger</AssemblyName>
<RootNamespace>ServiceStack.Api.Swagger</RootNamespace>
<AssemblyName>ServiceStack.Api.Swagger</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
Expand Down
@@ -1,6 +1,6 @@
using System;

namespace ServiceStack.Swagger
namespace ServiceStack.Api.Swagger
{
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class SwaggerAllowableValuesAttribute : Attribute
Expand Down
Expand Up @@ -5,7 +5,7 @@
using ServiceStack.ServiceHost;
using ServiceStack.WebHost.Endpoints;

namespace ServiceStack.Swagger
namespace ServiceStack.Api.Swagger
{
public class ResourceRequest
{
Expand Down
Expand Up @@ -2,7 +2,7 @@
using System.Text.RegularExpressions;
using ServiceStack.WebHost.Endpoints;

namespace ServiceStack.Swagger
namespace ServiceStack.Api.Swagger
{
public class SwaggerFeature : IPlugin
{
Expand Down
Expand Up @@ -5,7 +5,7 @@
using ServiceStack.ServiceHost;
using ServiceStack.WebHost.Endpoints;

namespace ServiceStack.Swagger
namespace ServiceStack.Api.Swagger
{
public class Resources
{
Expand Down

0 comments on commit bbbd0a5

Please sign in to comment.