mirror of
https://github.com/valitydev/swag-dark-api.git
synced 2024-11-06 02:45:22 +00:00
build_utils@ea4aa042f4 | ||
scripts | ||
spec | ||
web | ||
.gitignore | ||
.gitmodules | ||
gulpfile.js | ||
Jenkinsfile | ||
Makefile | ||
package.json | ||
pom.xml | ||
README.md | ||
wercker.yml |
swag-dark-api
Working on specification
Install
- Install Node JS
- Clone repo and
cd
- Run
npm install
- Run
Usage
- Run
npm start
- Checkout console output to see where local server is started. You can use all links (except
preview
) by replacing https://git@github.com:antonlva.github.io/rbkmoney-api-docs.git/ with url from the message:Server started <url>
- Make changes using your favorite editor or
swagger-editor
(look for URL in console output) - All changes are immediately propagated to your local server, moreover all documentation pages will be automagically refreshed in a browser after each change
TIP: you can open
swagger-editor
, documentation andswagger-ui
in parallel - Once you finish with the changes you can run tests using:
npm test
- Share you changes with the rest of the world by pushing to GitHub 😄
Для генерации клиентского java-кода используйте команду
npm run-script build && swagger-codegen generate -i web_deploy/swagger.json -l java -o ./java --api-package "com.rbkmoney.swag.dark_api.client" --artifact-id "swag-dark-api" --artifact-version "1.1.0" --group-id "com.rbkmoney" --model-package "com.rbkmoney.swag.dark_api.model" --library resttemplate --additional-properties dateLibrary=java8
Для генерации серверного java-кода используйте команду
mvn package