openapi-generator/samples/server/petstore/aspnetcore
Sebastian Mandrean 7cc20cbeba [C#][aspnetcore] Improve generated code (#5257)
* Migrate from Swashbuckle to Swashbuckle.AspNetCore

* Fix typo

* Add SwaggerResponse for all responses

* Remove model constructor

* Add required attribute if available

* Improve whitespace and remove some redundant code

* Remove redundant code from Dockerfile

* Add disable warning 1591 pragma for model utility methods for bringing down compiler warnings to zero

* Add proper model state validation before controller is called

* Regenerate AspNetCore PetStore sample
2017-03-30 22:58:25 +08:00
..
src/IO.Swagger [C#][aspnetcore] Improve generated code (#5257) 2017-03-30 22:58:25 +08:00
.swagger-codegen-ignore [aspnetcore] Deprecating aspnet5 for aspnetcore 2016-10-16 21:22:34 -04:00
build.bat Remove Apache license from server stub generators (#4200) 2016-11-17 00:37:21 +08:00
build.sh Remove Apache license from server stub generators (#4200) 2016-11-17 00:37:21 +08:00
global.json [C#][aspnetcore] Fix broken Docker build option & documentation (#5128) 2017-03-21 14:39:24 +08:00
IO.Swagger.sln [C#][aspnetcore] Fix broken Docker build option & documentation (#5128) 2017-03-21 14:39:24 +08:00
NuGet.Config [aspnetcore] Deprecating aspnet5 for aspnetcore 2016-10-16 21:22:34 -04:00
README.md [C#][aspnetcore] Fix broken Docker build option & documentation (#5128) 2017-03-21 14:39:24 +08:00

IO.Swagger - ASP.NET Core 1.0 Server

This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key to test the authorization filters.

Run

Linux/OS X:

sh build.sh

Windows:

build.bat

Run in Docker

cd src/IO.Swagger
docker build -t io.swagger .
docker run -p 5000:5000 io.swagger