Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Swagger Operations in random order #556

Merged
merged 1 commit into from

2 participants

@ivanfioravanti

OrderBy added to ToArray method to sort by path

@desunit desunit merged commit 886265a into from
@desunit
Owner

Thnx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2013
  1. @ivanfioravanti
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/ServiceStack.Api.Swagger/SwaggerApiService.cs
View
2  src/ServiceStack.Api.Swagger/SwaggerApiService.cs
@@ -120,7 +120,7 @@ public object Get(ResourceRequest request)
return new ResourceResponse {
ResourcePath = path,
BasePath = basePath,
- Apis = new List<MethodDescription>(paths.Select(FormateMethodDescription).ToArray())
+ Apis = new List<MethodDescription>(paths.Select(FormateMethodDescription).ToArray().OrderBy(md => md.Path))
};
}
Something went wrong with that request. Please try again.