openapi-generator/samples/server/petstore/aspnet5/build.sh
Jim Schubert 455ba9d839 [aspnet] Initial implementation of ASP.NET 5 server
Things to work on:

Gaps:

* Missing swagger definition functionality:
  - defaultResponse
  - examples
  - auth
  - consumes
  - produces
  - nickname
  - externalDocs
  - imports
  - security
  - schema
* Resolve allParams/hasMore issue with headerParams
* Create functional test project stub
* Resolve all issues with value type return values

In this commit:

* Initial cross-platform ASP.NET 5 API server
* Hook up swagger gen via Swashbuckle and xml comment
* Build script (*nix) in project root
* Dockerfile for container deployment
2016-02-02 22:28:27 -05:00

17 lines
545 B
Bash
Executable File

#!/usr/bin/env bash
if ! type dnvm > /dev/null 2>&1; then
source /usr/local/lib/dnx/bin/dnvm.sh
fi
if ! type dnu > /dev/null 2>&1 || [ -z "$SKIP_DNX_INSTALL" ]; then
dnvm install latest -runtime coreclr -alias default
dnvm install default -runtime mono -alias default
else
dnvm use default -runtime mono
fi
dnu restore src/IO.Swagger/ && \
dnu build src/IO.Swagger/ && \
dnu pack src/IO.Swagger/ --out artifacts && \
echo "Now, run the following to start the project: dnx --project src/IO.Swagger/project.json web"