{"id":23659991,"url":"https://github.com/sake92/openapi4s-demo","last_synced_at":"2025-09-23T13:20:27.379Z","repository":{"id":269846812,"uuid":"908633563","full_name":"sake92/openapi4s-demo","owner":"sake92","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-20T02:43:34.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T03:36:27.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sake92.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-12-26T14:59:40.000Z","updated_at":"2025-03-20T02:45:39.000Z","dependencies_parsed_at":"2024-12-26T16:24:21.239Z","dependency_job_id":"81f0a065-5905-48ba-bfb4-4d4eafab6baf","html_url":"https://github.com/sake92/openapi4s-demo","commit_stats":null,"previous_names":["sake92/openapi4s-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fopenapi4s-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fopenapi4s-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fopenapi4s-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sake92%2Fopenapi4s-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sake92","download_url":"https://codeload.github.com/sake92/openapi4s-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262434,"owners_count":21074308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-29T02:58:46.559Z","updated_at":"2025-09-23T13:20:27.373Z","avatar_url":"https://github.com/sake92.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openapi4s-demo\n\nPetstore [spec](api/resources/openapi.json) is downloaded on 26.12.2024 from https://petstore3.swagger.io/api/v3/openapi.json\n\nHere is a video demo: https://youtu.be/kf0vGrlKNb8\n\n## Usage\n```shell\n# 1. update the openapi.json\n\n# 2. (re)generate\n./mill api.openApi4sGenerate\n\n# 3. see what changed\ngit diff\n\n# 4. fill in the details\n./mill api.compile\n\n# 5. git commit\n```\n\nBy default, all endpoints will return 501 NotImplemented status.  \nYou just need to fill in the details. :) \n\nOpenApi4s will only overwrite definitions that it wrote originally (not the expressions though!).  \nAny class/method/val generated by OpenApi4s can be overwritten if you change it manually!  \nOther code (e.g. business logic in controller), *that you wrote* will not be touched. :)\n\n## Swagger UI\n\nAccess it at http://localhost:8080/swagger\n\n## CI check\n\nThere is a small chance that OpenApi4s overwrites your changes.  \nTo prevent that, there is a [small CI script](./.github/workflows/ci.yml) that checks this.  \nIt *forcefully regenerates the files*, and makes sure there is no `git diff` changes after that.  \nThis way you can be sure that your changes are preserved correctly.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsake92%2Fopenapi4s-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsake92%2Fopenapi4s-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsake92%2Fopenapi4s-demo/lists"}