A utility for visualising the paths of an OpenAPI definition.
This application supports a query parameter, url, which can be used to pre-load a definition in to the application.
A large number of public API specifications which can be used for testing are available here: https://apis.guru/browse-apis/
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
When running ng serve
from in the development container, to allow it to listen to connections
from the source machine browser, it needs to be ran with a host (as localhost won't allow it to
accept connections).
ng serve --host 0.0.0.0
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run npm run e2e
to execute the end-to-end tests via Cypress.
This will also start up a local server. If you just want to run the tests you can either use npm run cy:run
or npm run cy:open
depending on if you want to run the tests headless or not.
This guide details how to deploy Angular applications to GitHub pages.
The package.json defines a "build-deployment" script that can be ran to recompile the project in to the dist
directory. A GitHub action is configured for this repository so that pushes to master will run this and publish the output to GitHub Pages, hosted at: https://www.devwithimagination.com/OpenApiVisualiser/
This can be ran by running the command:
npm run-script build-deployment