aspnetcore/benchmarks/Swaggatherer
James Newton-King 1680b9f4fc
Change endpoint invoker to RequestDelegate, Endpoint/EndpointMetadataCollection namespaces, split out IRouteValuesFeature (#712)
2018-08-22 17:15:57 +12:00
..
Program.cs Add Swaggatherer (Swagger + Gatherer) 2018-06-06 21:50:07 -07:00
README.md Add Swaggatherer (Swagger + Gatherer) 2018-06-06 21:50:07 -07:00
RouteEntry.cs Add Swaggatherer (Swagger + Gatherer) 2018-06-06 21:50:07 -07:00
Swaggatherer.csproj Add Swaggatherer (Swagger + Gatherer) 2018-06-06 21:50:07 -07:00
SwaggathererApplication.cs Add support for httpmethods in swaggatherer 2018-07-11 21:44:55 -07:00
Template.cs Change endpoint invoker to RequestDelegate, Endpoint/EndpointMetadataCollection namespaces, split out IRouteValuesFeature (#712) 2018-08-22 17:15:57 +12:00

README.md

Swaggatherer (Swagger + Gatherer)

This is a cli tool that can generate a routing benchmark using a Swagger 2.0 spec as an input.

Usage

Generate a benchmark from a swagger file:

dotnet run -- -i swagger.json -o MyGeneratedBenchark.generated.cs

Generate a benchmark from a directory of swagger files:

dotnet run -- -d /some/directory -o MyGeneratedBenchark.generated.cs

The directory mode will recursively search for .json files.

Resources

A big repository of swagger docs: https://github.com/APIs-guru/openapi-directory Swagger editor + yaml <-> json conversion tool: https://editor2.swagger.io Azure's official swagger docs: https://github.com/Azure/azure-rest-api-specs