{"id":18772076,"url":"https://github.com/christianrich/swagger-api-demo","last_synced_at":"2026-05-14T21:37:30.600Z","repository":{"id":150404443,"uuid":"96058213","full_name":"ChristianRich/swagger-api-demo","owner":"ChristianRich","description":"Sample project featuring best practice of API building and testing","archived":false,"fork":false,"pushed_at":"2017-11-25T10:43:05.000Z","size":196,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T17:49:34.994Z","etag":null,"topics":["api","ava","node","rest-api","swagger-api","swagger2"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChristianRich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-03T01:11:25.000Z","updated_at":"2018-02-01T17:50:46.000Z","dependencies_parsed_at":"2023-04-25T23:33:07.503Z","dependency_job_id":null,"html_url":"https://github.com/ChristianRich/swagger-api-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChristianRich/swagger-api-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianRich%2Fswagger-api-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianRich%2Fswagger-api-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianRich%2Fswagger-api-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianRich%2Fswagger-api-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChristianRich","download_url":"https://codeload.github.com/ChristianRich/swagger-api-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChristianRich%2Fswagger-api-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33044458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","ava","node","rest-api","swagger-api","swagger2"],"created_at":"2024-11-07T19:27:41.537Z","updated_at":"2026-05-14T21:37:30.584Z","avatar_url":"https://github.com/ChristianRich.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swagger API demo\n\n### Live demo (free account may take 10 seconds to load)\n[https://swagger-tax-calc-api.herokuapp.com](https://swagger-tax-calc-api.herokuapp.com)\n\nSample project featuring best practice of API building and testing using [swagger.io](https://swagger/io)  \n\nFor the purpose of demonstation this API calculates your personal income tax using 2016-17 ATO rates as per below table.  \n\n| Taxable income     | Tax on this income                         |\n|--------------------|--------------------------------------------|\n| 0 – $18,200        | Nil                                        |\n| $18,201 – $37,000  | 19c for each $1 over $18,200               |\n| $37,001 – $87,000  | $3,572 plus 32.5c for each $1 over $37,000 |\n| $87,001 – $180,000 | $19,822 plus 37c for each $1 over $87,000  |\n| $180,001 and over  | $54,232 plus 45c for each $1 over $180,000 |\n\nCalculation includes Medicare levy.\n\nSource: [https://www.ato.gov.au/rates/individual-income-tax-rates/](https://www.ato.gov.au/rates/individual-income-tax-rates/)\n\n### Install\n `npm install`\n \n### Run  \n`npm start`\n\n### Run using Docker\n`docker build -t tax .`  \n\n`docker run -it -p 8000:3000 -t tax`  \n\nApp is now available at [http://localhost:8000](http://localhost:8000)\n\n### Test\n`npm test`\n\n### Generate HTML code coverage report in /coverage directory\n`npm run coverage`  \n\n### Swagger UI\nWhen project is up and running you should see the Swagger UI live docs:\n\n![Swagger UI](https://raw.githubusercontent.com/ChristianRich/swagger-api-demo/master/images/swagger.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianrich%2Fswagger-api-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristianrich%2Fswagger-api-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianrich%2Fswagger-api-demo/lists"}