mirror of
https://github.com/valitydev/swag-webhook-events.git
synced 2024-11-06 10:25:17 +00:00
7f795d79a2
* Fix release action * Fix build command |
||
---|---|---|
.github/workflows | ||
openapi | ||
plugins | ||
web | ||
.gitignore | ||
.redocly.yaml | ||
crowdin.yml | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
pom.xml | ||
README.md | ||
renovate.json |
RBKmoney Webhooks Events API Specification
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://github.com/antonlva/swag-webhook-events.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 😄
Generate java-client code
- Install swagger-codegen with brew
brew install swagger-codegen
- Run
npm start
- Run
npm run build
- Use this command
swagger-codegen generate -i web_deploy/swagger.json -l java -o ./java --api-package "com.rbkmoney.swag_webhook_events" --artifact-id "swag-webhook-events" --artifact-version "1.0.8-SNAPSHOT" --group-id "com.rbkmoney" --model-package "com.rbkmoney.swag_webhook_events" --library resttemplate --additional-properties dateLibrary=java8