1.0.0 • Published 8 years ago
swagen-ng2-http v1.0.0
Deprecation notice
The swagen-ng2-http generator has been deprecated and replaced by the swagen-angular (npm) package.
There are breaking changes in the configuration between swagen-ng2-http and swagen-angular.
We recommend that you remove the existing configuration and recreate it from scratch.
- Install the swagen-angularpackage, either globally or locally
# Globally
npm install -g swagen-angular
# Locally
npm install --save-dev swagen-angular- Uninstall the swagen-ng2-httppackage.
# Globally
npm uninstall -g swagen-ng2-http
# Locally
npm uninstall --save-dev swagen-ng2-http# Check version of globally-installed Swagen
swagen version
# Check version of locally-installed Swagen
node_modules/.bin/swagen version- From your swagen.config.jsonandswagen.config.jsconfiguration files, remove any sections that use theswagen-ng2-httpgenerator.If you are using recent versions of Swagen, you can type swagen remove <section name>to remove the section fromswagen.config.json.
- Use the swagen initcommand to recreate these sections.