Business Registries REST API
Introduction
This is the repository for the Business Registries REST API.
License
This work is licensed under the Creative Commons Attribution 3.0 Australia (CC BY 3.0 AU) License. To view a copy of this license, visit https://creativecommons.org/licenses/by/3.0/au/.
Links
-
Documentation: https://ato-team.github.io/business-registries-rest-api-specification/
-
The OpenAPI Specification:
To work on the API specification
Install
- Install Node JS
- Clone the repo,
cd
then runnpm install
(oryarn install
)
Usage
- Run
npm start
- Check the console output to see where the local server was started:
[08:24:32] Starting 'build'... [08:24:32] Starting 'watch'... [08:24:32] Finished 'watch' after 77 ms [08:24:32] Starting 'edit'... [08:24:32] Finished 'edit' after 1.92 ms [08:24:32] swagger-editor started http://localhost:5000 [08:24:36] Finished 'build' after 3.73 s [08:24:36] Starting 'serve'... [08:24:36] Finished 'serve' after 73 μs [08:24:36] Server started http://localhost:3000 [08:24:36] LiveReload started on port 35729
- Make changes using your favorite editor (in the
/spec
folder) or use the bundledswagger-editor
(look for the URL in the console's output) - All changes are immediately propagated to your local server, moreover all documentation pages will be automagically refreshed in the browser after each change
- Once you finish with the changes you can run tests using:
npm test
Note: you can open swagger-editor
, documentation and swagger-ui
in parallel
Additional Resources
- Digital Transformation Agency Digital Service Standard
- A Guide to Open Source Software for Australian Government Agencies
- ATO RESTful API Design Guidelines
- ReDoc
- json-server - Get a full fake REST API with zero coding in less than 30 seconds (seriously).
- faker.js - Generate massive amounts of fake data in Node.js and the browser.
- Postman - Developing APIs is hard. Postman makes it easy.
- Sahat's Excellent Hackathon Starter - A kickstarter for Node.js applications.
- Microsoft's TypeScript-Node-Starter - A starter template for TypeScript and Node with a detailed README describing how to use the two together.
- Gery Hirschfeld's Express-TypeScript-Starter - A starter template for Express and TypeScript.
- Gery Hirschfeld's Express-GraphQL-TypeScript-Starter - A starter template for Express, GraphQL and TypeScript.