{"id":19110886,"url":"https://github.com/borys35/webshop-api","last_synced_at":"2026-05-19T05:37:53.172Z","repository":{"id":260464415,"uuid":"881313348","full_name":"Borys35/webshop-api","owner":"Borys35","description":"Fully-equipped Web Shop API built w/ Java, Spring Boot, Auth, and more","archived":false,"fork":false,"pushed_at":"2024-12-21T11:06:56.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T04:21:26.605Z","etag":null,"topics":["authentication","java","jwt","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Borys35.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":"2024-10-31T10:23:19.000Z","updated_at":"2024-12-21T11:07:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"9980ab2d-92d4-440f-b6f0-8ec151b79d51","html_url":"https://github.com/Borys35/webshop-api","commit_stats":null,"previous_names":["borys35/webshop-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borys35%2Fwebshop-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borys35%2Fwebshop-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borys35%2Fwebshop-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borys35%2Fwebshop-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Borys35","download_url":"https://codeload.github.com/Borys35/webshop-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240164939,"owners_count":19758273,"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":["authentication","java","jwt","spring-boot"],"created_at":"2024-11-09T04:26:25.426Z","updated_at":"2025-10-16T20:18:28.298Z","avatar_url":"https://github.com/Borys35.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-commerce System REST API\n\nThis project is a fully functional REST API for an e-commerce platform. It includes user authentication, product browsing, cart management, and order processing. Built with modern technologies, it demonstrates robust backend development and secure design principles.\n\n## API Routes\n\n### Products\n- **GET /products** - Retrieve all products with optional pagination and filtering.\n- **GET /products/:id** - Retrieve details of a specific product by ID.\n- **POST /products** - Add a new product (admin-only route).\n- **PUT /products/:id** - Update a specific product by ID (admin-only route).\n- **DELETE /products/:id** - Delete a specific product by ID (admin-only route).\n\n### Authentication\n- **POST /auth/register** - Register a new user.\n- **POST /auth/login** - Log in an existing user and retrieve a JWT token.\n- **GET /auth/test** - Test endpoint.\n\n### Orders\n- **GET /orders** - Retrieve all orders for the authenticated user.\n- **POST /orders** - Create a new order.\n\n### Cart\n- **GET /cart** - Retrieve the cart for the authenticated user.\n- **POST /cart** - Add an item to the cart for the authenticated user.\n- **DELETE /cart/:id** - Remove an item from the cart by ID for the authenticated user.\n\n### Users\n- **GET /users** - Retrieve all users (admin-only route).\n- **GET /users/:id** - Retrieve details of a specific user by ID (admin-only route).\n- **DELETE /users/:id** - Delete a user by ID (admin-only route).\n\n## Key Features\n- **Role-Based Access Control**: Differentiates between ADMIN and USER roles to secure sensitive endpoints.\n- **JWT-Based Authentication**: Implements stateless authentication with token expiration.\n- **Pagination and Filtering**: Enhances the usability of product browsing.\n- **Secure Design Principles**: Focus on ensuring data integrity and protecting user information.\n\n## Testing\nTesting is a critical part of this project to ensure reliability and maintainability. It focuses on integration testing, using tools like Testcontainers to validate the entire application flow with real dependencies.\n\n## Technologies Used\n- **Spring Boot**: For building the REST API.\n- **JPA (Java Persistence API)**: For database interactions.\n- **JWT (JSON Web Tokens)**: For secure and stateless authentication.\n- **Testcontainers**: For integration testing.\n\nThis project demonstrates my ability to design scalable REST APIs, implement secure authentication systems, and apply modern software development practices.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborys35%2Fwebshop-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborys35%2Fwebshop-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborys35%2Fwebshop-api/lists"}