{"id":22878021,"url":"https://github.com/ankhoa1212/rest-api-web-service","last_synced_at":"2026-05-11T02:02:27.674Z","repository":{"id":267707228,"uuid":"902109341","full_name":"ankhoa1212/rest-api-web-service","owner":"ankhoa1212","description":"This project was done in Jan. 2024","archived":false,"fork":false,"pushed_at":"2024-12-11T23:44:50.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T20:23:59.911Z","etag":null,"topics":["java","json","rest-api","spring-boot","unit-testing"],"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/ankhoa1212.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":"2024-12-11T23:28:44.000Z","updated_at":"2024-12-11T23:44:54.000Z","dependencies_parsed_at":"2024-12-12T00:36:34.816Z","dependency_job_id":null,"html_url":"https://github.com/ankhoa1212/rest-api-web-service","commit_stats":null,"previous_names":["ankhoa1212/rest-api-web-service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhoa1212%2Frest-api-web-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhoa1212%2Frest-api-web-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhoa1212%2Frest-api-web-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ankhoa1212%2Frest-api-web-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ankhoa1212","download_url":"https://codeload.github.com/ankhoa1212/rest-api-web-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246481005,"owners_count":20784458,"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":["java","json","rest-api","spring-boot","unit-testing"],"created_at":"2024-12-13T16:17:37.297Z","updated_at":"2026-05-11T02:02:27.585Z","avatar_url":"https://github.com/ankhoa1212.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"When the main function in `RestServiceApplication.java` found [here](https://github.com/ankhoa1212/rest-api-web-service/blob/main/rest-service/src/main/java/com/example/restservice/RestServiceApplication.java) is run, the application runs on http://localhost:8080\n\nThe app can receive GET and POST requests on http://localhost:8080/employees/\n\nA GET request returns the employees\nEmployees can be added via a POST request, which can receive and return JSON in the following format:\n```\n{\n    \"id\" : \"4\",\n    \"firstName\" : \"Mary\",\n    \"lastName\" : \"Poppins\",\n    \"email\" : \"mpoppins@gmail.com\",\n    \"title\" : \"Ms.\"\n}\n```\n\nThe app can also receive GET requests on http://localhost:8080/greeting\nor http://localhost:8080/greeting?name=yourname\nand returns a unique message id and a greeting message:\n```\n{\n    \"id\": 1,\n    \"content\": \"Hello, World\"\n}\n```\n\nUnit tests can be found [here](https://github.com/ankhoa1212/rest-api-web-service/tree/main/rest-service/src/test/java/com/example/restservice)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankhoa1212%2Frest-api-web-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fankhoa1212%2Frest-api-web-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fankhoa1212%2Frest-api-web-service/lists"}