{"id":21812723,"url":"https://github.com/kapil7982/ambula","last_synced_at":"2026-05-21T05:33:41.532Z","repository":{"id":181209748,"uuid":"666407357","full_name":"Kapil7982/Ambula","owner":"Kapil7982","description":"This is a sample Spring Boot application that demonstrates how to implement role-based authentication using JSON Web Tokens (JWT) and Spring Security. It provides a RESTful API for managing customers and implements basic authentication and authorization mechanisms.","archived":false,"fork":false,"pushed_at":"2023-07-14T13:33:08.000Z","size":87,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T09:18:19.747Z","etag":null,"topics":["hsqldb","java","jwt","spring-boot","springsecurity-jwt"],"latest_commit_sha":null,"homepage":"http://localhost:8888/swagger-ui/index.html","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/Kapil7982.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-07-14T12:45:42.000Z","updated_at":"2023-07-14T13:17:51.000Z","dependencies_parsed_at":"2023-07-14T14:17:48.891Z","dependency_job_id":null,"html_url":"https://github.com/Kapil7982/Ambula","commit_stats":null,"previous_names":["kapil7982/ambula"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kapil7982/Ambula","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAmbula","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAmbula/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAmbula/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAmbula/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kapil7982","download_url":"https://codeload.github.com/Kapil7982/Ambula/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kapil7982%2FAmbula/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33289868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"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":["hsqldb","java","jwt","spring-boot","springsecurity-jwt"],"created_at":"2024-11-27T14:19:26.081Z","updated_at":"2026-05-21T05:33:41.502Z","avatar_url":"https://github.com/Kapil7982.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Location\n\nThis is a sample Spring Boot application that demonstrates how to implement role-based authentication using JSON Web Tokens (JWT) and Spring Security. It provides a RESTful API for managing customers and implements basic authentication and authorization mechanisms.\n\n## Features\n\nThis is a sample Spring Boot application that demonstrates how to implement role-based authentication using JSON Web Tokens (JWT) and Spring Security. It provides a RESTful API for managing customers and implements basic authentication and authorization mechanisms.\n\n## Features\n\n- User registration: Users can register by providing their name, email, password, and role (admin or reader).\n- User update: Users can update their profile information, including name, email, and password.\n- Get nearest users: Reader can retrieve a list of nearest users based on the provided count.\n- Role-based authorization: Different endpoints require different roles (admin or reader) for access.\n- JSON Web Tokens (JWT): JWTs are used for authentication and securing API endpoints.\n\n## Tech Stack\n\n- Java\n- Spring Boot\n- Spring Security\n- JSON Web Tokens (JWT)\n- HSQL Database\n\n## Installation\n\ngit clone https://github.com/Kapil7982/Ambula.git\n\n## HSQL database details\n\nInstall and connect with the database\n\n```bash\n#changing the server port\nserver.port=8888\n#db specific properties\nspring.datasource.url=jdbc:hsqldb:mem:test\nspring.datasource.driverClassName=org.hsqldb.jdbcDriver\nspring.datasource.username=root\nspring.datasource.password=port\n\n#ORM s/w specific properties\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.show-sql=true\n```\n\n## Dependencies\n\nThe project uses the following major dependencies:\n\n- Spring Boot\n- Spring Security\n- MySQL Connector\n- JSON Web Tokens (JWT)\n\n## Testing the API:\n\n- Use an API testing tool like Postman or Swagger-UI to send requests to the API endpoints.\n- You can start by creating a new user account using the /create_data endpoint and then use the /login endpoint to authenticate and obtain a JWT.\n- Include the JWT token in the Authorization header of subsequent requests to access protected resources.\n\n# After running the application just hit the below URL to check the API's.\n\nhttp://localhost:8888/swagger-ui/index.html\n\n## Swagger-UI\n\n![WhatsApp Image 2023-07-14 at 5 48 26 PM](https://github.com/Kapil7982/Ambula/assets/103938868/b856a841-baaa-4fa5-b441-5c14f3d45f89)\n\n![WhatsApp Image 2023-07-14 at 6 03 09 PM](https://github.com/Kapil7982/Ambula/assets/103938868/0bfafd1d-a251-4e1e-8fec-a874984ea7de)\n\n![WhatsApp Image 2023-07-14 at 6 41 56 PM](https://github.com/Kapil7982/Ambula/assets/103938868/75ec2cb5-6a82-41ef-8c33-b8d856b7e032)\n\n![WhatsApp Image 2023-07-14 at 6 08 07 PM](https://github.com/Kapil7982/Ambula/assets/103938868/b9c02b7e-b0b2-49d0-b1da-cc2cb6b39dda)\n\n![WhatsApp Image 2023-07-14 at 6 02 12 PM](https://github.com/Kapil7982/Ambula/assets/103938868/abf549ce-bb72-428a-8b18-9172cef26c04)\n\n![WhatsApp Image 2023-07-14 at 6 00 35 PM](https://github.com/Kapil7982/Ambula/assets/103938868/d33b8859-4235-48df-81af-9a727da9b453)\n\n![WhatsApp Image 2023-07-14 at 5 55 56 PM](https://github.com/Kapil7982/Ambula/assets/103938868/527ebfd2-da07-4766-bfc7-44155e7a9a9e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapil7982%2Fambula","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkapil7982%2Fambula","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkapil7982%2Fambula/lists"}