{"id":20125912,"url":"https://github.com/robole/spring-boot-api-for-beginners","last_synced_at":"2026-05-01T23:31:40.353Z","repository":{"id":109473801,"uuid":"414743669","full_name":"robole/spring-boot-api-for-beginners","owner":"robole","description":"Beginner-friendly intro to web services with Spring Boot","archived":false,"fork":false,"pushed_at":"2021-10-07T20:50:21.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-02T21:48:34.043Z","etag":null,"topics":["api","resfful","restful-services","spring","spring-boot","web-services"],"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/robole.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":"2021-10-07T20:10:40.000Z","updated_at":"2023-01-12T16:24:30.000Z","dependencies_parsed_at":"2023-04-01T15:03:12.831Z","dependency_job_id":null,"html_url":"https://github.com/robole/spring-boot-api-for-beginners","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/robole/spring-boot-api-for-beginners","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robole%2Fspring-boot-api-for-beginners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robole%2Fspring-boot-api-for-beginners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robole%2Fspring-boot-api-for-beginners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robole%2Fspring-boot-api-for-beginners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robole","download_url":"https://codeload.github.com/robole/spring-boot-api-for-beginners/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robole%2Fspring-boot-api-for-beginners/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32517140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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","resfful","restful-services","spring","spring-boot","web-services"],"created_at":"2024-11-13T20:11:43.417Z","updated_at":"2026-05-01T23:31:40.333Z","avatar_url":"https://github.com/robole.png","language":"Java","funding_links":["https://ko-fi.com/roboleary"],"categories":[],"sub_categories":[],"readme":"# From 'A' to 'Web App': Build an API in Java\r\n\r\nI wrote [this tutorial](https://www.roboleary.net/java/2020/06/03/spring-boot-api.html) to fill a void that I have noticed. Building web applications is a top priority for people learning backend development, but I haven’t seen any Java or Spring Boot tutorials that is friendly for beginners. Most tutorials are either too trivial ([Hello World API](http://spring.io/guides/gs/rest-service/)) to help you understand what you need to know; or they are overwhelming and assume too much about what you already know!\r\n\r\nThe [second part of the tutorial](https://www.roboleary.net/testing/2020/06/15/api-testing.html) covers testing this web service. The corresponding code is contained in the \"with-tests\" branch, the code differs slightly from the \"master\" branch, and includes the unit tests discussed.\r\n  \r\n## What you’ll build\r\n\r\nYou’ll build a web service that can create, read, update, and delete users.\r\n\r\n![get request example](img/demo.jpg)\r\n\r\nThe default local address for your Spring Boot application will be: [http://localhost:8080](http://localhost:8080),\r\nso the address to get all users would be [http://localhost:8080/users](http://localhost:8080/users) for example.\r\n\r\nWe will create the following actions:\r\n\r\n \u003ctable class=\"tg\"\u003e\r\n   \u003ctbody\u003e\u003ctr\u003e\r\n     \u003cth class=\"tg-yw4l\"\u003eHTTP Method\u003c/th\u003e\r\n     \u003cth class=\"tg-yw4l\"\u003eAddress\u003c/th\u003e\r\n     \u003cth class=\"tg-yw4l\"\u003eAction\u003c/th\u003e\r\n   \u003c/tr\u003e\r\n   \u003ctr\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eGET\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003e/users\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eGet all users\u003c/td\u003e\r\n   \u003c/tr\u003e\r\n   \u003ctr\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eGET\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003e/users/{id}\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eGet users by id\u003c/td\u003e\r\n   \u003c/tr\u003e\r\n   \u003ctr\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eGET\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003e/users?name=rob+oleary\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eGet user by name\u003c/td\u003e\r\n   \u003c/tr\u003e\r\n   \u003ctr\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003ePOST\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003e/users\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eAdd a new user\u003c/td\u003e\r\n   \u003c/tr\u003e\r\n   \u003ctr\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003ePUT\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003e/users\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eUpdate a user\u003c/td\u003e\r\n   \u003c/tr\u003e\r\n   \u003ctr\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eDELETE\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003e/users/{id}\u003c/td\u003e\r\n     \u003ctd class=\"tg-yw4l\"\u003eDelete a user\u003c/td\u003e\r\n   \u003c/tr\u003e\r\n \u003c/tbody\u003e\r\n \u003c/table\u003e\r\n\r\n [The tutorial](https://www.roboleary.net/java/2020/06/03/spring-boot-api.html) outlines prerequisites and provides a step-by-step guide to building the web serivce.\r\n\r\n## Show appreciation\r\n\r\nIf the tutorial was helpful, please star the repo 🌟, and recommend it to others.\r\n\r\nYou can show your appreciation by [buying me a coffee or sponsoring me](https://ko-fi.com/roboleary). This will offer me encouragement to continue making educational content like this.\r\n\r\n\u003cp align=\"center\"\u003e\r\n\u003ca href=\"https://ko-fi.com/roboleary\"\u003e\u003cimg src=\"img/coffee.png\" alt=\"buy me a coffee\"\u003e\u003c/a\u003e\r\n\u003c/p\u003e\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobole%2Fspring-boot-api-for-beginners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobole%2Fspring-boot-api-for-beginners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobole%2Fspring-boot-api-for-beginners/lists"}