A template for swagger-codegen that generates a Node.js project that validates and routes requests to a url.
- Install Vagrant
git clone https://github.com/echelon-solutions/swagger-codegen-router-template.git
# Change into the repository directory
cd swagger-codegen-router-template
# Add the swagger specification file
cp <some-directory>/swagger.yaml ./src/main/resources/swagger.yaml
# Bring up the Vagrant build environment
vagrant up
# Login to the environment
vagrant ssh
# Change into the project directory
# Vagrant syncs the /project directory with your host machine
cd /project
# Run Maven to build and output the project
# Output can be found in /project/target/generated-sources/swagger/
mvn clean package
Please reach out to [email protected] with any questions, concerns, or suggestions.
Also, feel free to clone/fork this project and suggest changes and updates via a "Pull Request".