{"id":20321905,"url":"https://github.com/hr-fahim/spring-boot-restful-api-testing-with-postman-api","last_synced_at":"2026-05-18T01:03:00.617Z","repository":{"id":177640384,"uuid":"660684879","full_name":"HR-Fahim/Spring-Boot-RESTful-API-Testing-with-Postman-API","owner":"HR-Fahim","description":"Building a RESTful API with Spring Boot and Testing with Postman: A Guide to Modern Web Development.","archived":false,"fork":false,"pushed_at":"2023-06-30T16:39:14.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T04:42:53.237Z","etag":null,"topics":["framework","postman","restful-api","spring-boot"],"latest_commit_sha":null,"homepage":"https://hrfprofessional.medium.com/i-built-restful-api-with-spring-boot-tested-with-postman-2a821b75a89d","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HR-Fahim.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":"2023-06-30T15:23:09.000Z","updated_at":"2023-10-03T23:22:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"15ea18ba-b34d-4d55-bac5-57bdaf6f7bba","html_url":"https://github.com/HR-Fahim/Spring-Boot-RESTful-API-Testing-with-Postman-API","commit_stats":null,"previous_names":["hr-fahim/spring-boot-restful-api-testing-with-postman-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HR-Fahim/Spring-Boot-RESTful-API-Testing-with-Postman-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FSpring-Boot-RESTful-API-Testing-with-Postman-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FSpring-Boot-RESTful-API-Testing-with-Postman-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FSpring-Boot-RESTful-API-Testing-with-Postman-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FSpring-Boot-RESTful-API-Testing-with-Postman-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HR-Fahim","download_url":"https://codeload.github.com/HR-Fahim/Spring-Boot-RESTful-API-Testing-with-Postman-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HR-Fahim%2FSpring-Boot-RESTful-API-Testing-with-Postman-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33161411,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"ssl_error","status_checked_at":"2026-05-17T22:39:10.741Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["framework","postman","restful-api","spring-boot"],"created_at":"2024-11-14T19:17:49.312Z","updated_at":"2026-05-18T01:03:00.598Z","avatar_url":"https://github.com/HR-Fahim.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nThis demonstrates how to build a simple RESTful API using the Spring Boot framework, display the user data on an HTML page, and test it\nwith Postman API.\n\n## Prerequisites\n\nBefore starting this, make sure you have the following:\n\n- Java Development Kit (JDK) installed\n- Visual Studio Code (or any other IDE) installed\n- Postman (or any other API testing tool) installed\n\n## Getting Started\n\nFollow the steps below to set up the project and run the application:\n\n1. Clone the repository or download the project files.\n\n2. Open the project in Visual Studio Code.\n\n3. Open a terminal in Visual Studio Code (View -\u003e Terminal).\n\n4. Run the following command in the terminal to build and run the application:\n\n   ```\n   ./mvnw spring-boot:run\n   ```\n\n   This will start the Spring Boot application and listen for requests on `http://localhost:8080`.\n\n5. Open Postman and create a new request.\n\n6. Set the request method to `GET` and enter the following URL:\n\n   ```\n   http://localhost:8080/user\n   ```\n\n   This will retrieve the user data from the API.\n\n7. The response should contain the user's name and email.\n\n8. Open a web browser and navigate to `http://localhost:8080/index.html`.\n\n   ![index](https://github.com/HR-Fahim/Spring-Boot-RESTful-API-Testing-With-Postman-API/assets/66734379/1b6f6d1f-16e9-4bae-92f0-04407269219b)\n\n10. The HTML page will display the user's name and email obtained from the API.\n\n## Project Structure\n\nThe project structure is as follows:\n\n```\ndemo/\n├── src/\n│   └── main/\n│       ├── java/\n│       │   └── com/\n│       │       └── example/\n│       │           └── demo/\n│       │               ├── controller/\n│       │               │   └── UserController.java\n│       │               └── DemoApplication.java\n│       └── resources/\n│           └── static/\n│               └── index.html\n└── pom.xml\n```\n\n- The `UserController` class in the `controller` package defines the API endpoint for retrieving user data.\n\n- The `DemoApplication` class in the root package is the main entry point of the application.\n\n- The `index.html` file in the `static` directory is the HTML page that displays the user data.\n\n## Customize User Data\n\nTo customize the user data, follow these steps:\n\n1. Open the `UserController` class (`src/main/java/com/example/demo/controller/UserController.java`).\n\n2. Modify the `getUserInfo` method to return the desired user data. You can change the default values for the `name` and `email` parameters or fetch the data from a database or external service.\n\n3. Rebuild and run the application to see the updated user data.\n\n## API Testing\n\nYou can test the API endpoints using Postman or any other API testing tool.\n\n![Postman V2](https://github.com/HR-Fahim/Spring-Boot-RESTful-API-Testing-With-Postman-API/assets/66734379/d2ea0b92-75e5-43b8-8daf-c31104442781)\n\n## License\n\nThis project is licensed under the [GNU License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr-fahim%2Fspring-boot-restful-api-testing-with-postman-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhr-fahim%2Fspring-boot-restful-api-testing-with-postman-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhr-fahim%2Fspring-boot-restful-api-testing-with-postman-api/lists"}