openapi-generator/samples/server/petstore/aspnetcore
Sean Farrow 59ad12183f Update the Asp.Net core server generator to support Asp.net Core 2.1 (#1008)
* Update the .net core sdk to v2.1 and update the asp.net packages used.

* Upgrade the SwashBuckle Asp.Net Core package to v3.0.0.

* Update the AppSettings json file and add a file used in development.
Also, remove the web.config file.

* Update the program template to use the web host builder class.

* Update the startup class to use the Asp.Net 2.1 paradigms.

* Update the launch settings json file.

* Update the controller template to derive from the ControllerBase class as aposed to Controller.

* Add the SwashBuckle annotations package.

* Add the SwashBuckle.AspNetCore.Annotations namespace to the controller template.

* Update the Startup template to add comments to the Configuration property and an env parameter to the Configure method.

* Update the startup class so we don't need to inject the hosting environment.

* Update the program class to have hte recommended CreateWebHostBuilder method from asp.net core 2.1.

* Update the asp.net core pet store sample server.

* add back aspnetcore 2.0 template via option

* remove web.config for aspnet core 2.1
2018-09-12 18:42:16 +08:00
..
.openapi-generator Update the Asp.Net core server generator to support Asp.net Core 2.1 (#1008) 2018-09-12 18:42:16 +08:00
src/Org.OpenAPITools Update the Asp.Net core server generator to support Asp.net Core 2.1 (#1008) 2018-09-12 18:42:16 +08:00
.openapi-generator-ignore Regenerate samples (#367) 2018-05-08 16:44:51 +08:00
build.bat Regenerate samples (#367) 2018-05-08 16:44:51 +08:00
build.sh Regenerate samples (#367) 2018-05-08 16:44:51 +08:00
Org.OpenAPITools.sln Update the aspnetcore generation (#53) 2018-05-15 21:41:44 -04:00
README.md Regenerate samples (#367) 2018-05-08 16:44:51 +08:00

Org.OpenAPITools - ASP.NET Core 2.0 Server

This is a sample server Petstore server. 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/Org.OpenAPITools
docker build -t org.openapitools .
docker run -p 5000:5000 org.openapitools