This repo contains actual swagger files for blockscout microservices.
-
Install node_modules and run the script to generate swagger file
npm install npm run new
-
Add github action job step to your CICD
jobs: other-jobs: ... push-swagger: if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags')) uses: blockscout/blockscout-rs/.github/workflows/_push_swagger.yml@main with: service_name: '{service_name}' swagger_path: '{swagger_path}' secrets: api_token_github: ${{ secrets.BLOCKSCOUT_BOT_TOKEN }}
- Run the script to generate swagger file
npm run regenerate