{"id":28401189,"url":"https://github.com/fern-api/spring-starter","last_synced_at":"2025-09-09T16:49:28.009Z","repository":{"id":188183309,"uuid":"611946925","full_name":"fern-api/spring-starter","owner":"fern-api","description":"A starter repo for Java Spring, using Fern","archived":false,"fork":false,"pushed_at":"2024-02-26T21:50:58.000Z","size":16613,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T01:15:54.896Z","etag":null,"topics":["api-codegen","built-with-fern","generated-code","java-spring"],"latest_commit_sha":null,"homepage":"","language":"Java","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/fern-api.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}},"created_at":"2023-03-09T21:49:07.000Z","updated_at":"2024-06-04T02:30:45.000Z","dependencies_parsed_at":"2023-11-07T03:29:57.037Z","dependency_job_id":"b4a343da-d183-4f32-932e-e582ab179ff3","html_url":"https://github.com/fern-api/spring-starter","commit_stats":null,"previous_names":["fern-api/spring-starter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fern-api/spring-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fern-api%2Fspring-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fern-api%2Fspring-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fern-api%2Fspring-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fern-api%2Fspring-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fern-api","download_url":"https://codeload.github.com/fern-api/spring-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fern-api%2Fspring-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262437808,"owners_count":23311031,"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":["api-codegen","built-with-fern","generated-code","java-spring"],"created_at":"2025-06-01T11:38:06.939Z","updated_at":"2025-06-28T13:31:31.245Z","avatar_url":"https://github.com/fern-api.png","language":"Java","readme":"# Spring + Fern starter repo\n\nThis repo is a starter repo for building a Spring server using [Fern](https://github.com/fern-api/fern).\n\n**Fern is an open source format for defining REST APIs.** Fern makes it easy to:\n\n1. Define your API\n1. Implement your API on the backend\n1. Consume your API on the frontend\n\n## Quick start\n\n### Step 1: Fork this repo\n\n### Step 2: Clone your fork\n\n### Step 3: Generate code\n\nMost of the code for this server is auto-generated by Fern!\n\nIn a terminal, run:\n\n```bash\nnpm install -g fern-api\nfern generate\n```\n\n### Step 4: Run the backend\n\n```bash\n./gradlew bootRun\n```\n\nNow you can cURL the server!\n\n```\ncurl 'http://localhost:8080/movies/goodwill-hunting'\n```\n\n## Development\n\nTo get started, open a VSCode window for the root of this repo:\n\n```\n./gradlew idea \u0026\u0026 open *.ipr\n```\n\n### Auto-generated server code\n\nNearly all of the server code is generated by Fern when you run `fern generate`.\nThe generated code lives in src/main/java/com/example/generated.\n\nIn addition to saving you time, the auto-generated code gives you compile-time safety\nthat your API is implemented correctly. \n\n## Changing the API\n\nThe API is defined using [Fern](https://www.buildwithfern.comhttps://www.buildwithfern.com/). The definition\nlives in the [fern/](fern/api/definition) directory. You can edit these YAML files\nto update the API. Check out the [docs](https://docs.buildwithfern.com/definition) to read more about defining APIs.\n\nMost of the server code in this repo is **automatically generated\nby Fern.** You can regenerate the code using the Fern CLI:\n\n```\nnpm install -g fern\nfern generate\n```\n\nThis will output newly generated code to src/main/java/com/example/generated.\n\nWhen you change your API, you'll get compile errors if you're not implementing\nthe API correctly.\n\n## Issues \u0026 contributing\n\nIf you run into any problems while using this ticket, plesae [file an\nissue](https://github.com/fern-api/spring-starter/issues). Of course, PRs are\nwelcome and encouraged!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffern-api%2Fspring-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffern-api%2Fspring-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffern-api%2Fspring-starter/lists"}