{"id":22795963,"url":"https://github.com/realchaula/ordermicroservice","last_synced_at":"2026-05-09T15:17:39.799Z","repository":{"id":256705611,"uuid":"847316923","full_name":"RealChAuLa/OrderMicroService","owner":"RealChAuLa","description":"SpringBoot REST API to Handle Order Details For NextTrend Web Application (MySQL)","archived":false,"fork":false,"pushed_at":"2024-11-26T21:28:40.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T20:32:57.755Z","etag":null,"topics":["api","mysql","rest-api","restful-api","spring-boot","springboot","swagger","swagger-ui","swagger2"],"latest_commit_sha":null,"homepage":"https://github.com/RealChAuLa/NexTrendClothing","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/RealChAuLa.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-08-25T13:34:23.000Z","updated_at":"2024-11-26T21:28:44.000Z","dependencies_parsed_at":"2024-09-12T15:36:30.920Z","dependency_job_id":"ff40dc4d-e0b2-4fa4-b2e7-c0ba4e870779","html_url":"https://github.com/RealChAuLa/OrderMicroService","commit_stats":null,"previous_names":["realchaula/ordermicroservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealChAuLa%2FOrderMicroService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealChAuLa%2FOrderMicroService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealChAuLa%2FOrderMicroService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealChAuLa%2FOrderMicroService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealChAuLa","download_url":"https://codeload.github.com/RealChAuLa/OrderMicroService/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246358323,"owners_count":20764366,"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":["api","mysql","rest-api","restful-api","spring-boot","springboot","swagger","swagger-ui","swagger2"],"created_at":"2024-12-12T05:09:29.000Z","updated_at":"2026-05-09T15:17:34.751Z","avatar_url":"https://github.com/RealChAuLa.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Order Microservice API\n\nThis is a RESTful API service for managing orders in an e-commerce system. The service is built using Spring Boot and MongoDB.\n\n## API Endpoints\n\n### Redirect to Swagger UI\n- **URL:** `/`\n- **Method:** GET\n- **Description:** Redirects to the Swagger UI documentation page\n\n### Get All Orders\n- **URL:** `/orders`\n- **Method:** GET\n- **Description:** Retrieves all orders from the database\n- **Response:** List of OrderServiceData objects\n\n### Create New Order\n- **URL:** `/order`\n- **Method:** POST\n- **Description:** Creates a new order\n- **Request Body:** OrderServiceData object\n- **Response:** Created OrderServiceData object\n\n### Get Orders by Username\n- **URL:** `/orders/username/{username}`\n- **Method:** GET\n- **Description:** Retrieves all orders for a specific username using MongoDB pipeline\n- **Parameters:** \n  - `username` (path parameter)\n- **Response:** List of OrderServiceData objects\n\n### Get Top 4 Best-Selling Products\n- **URL:** `/orders/bestsales`\n- **Method:** GET\n- **Description:** Retrieves the top 4 most sold products based on quantity\n- **Response:** List of TopSalesData objects\n\n## Cross-Origin Resource Sharing (CORS)\nThis API supports CORS with all origins (`*`).\n\n## Documentation\nThe API is documented using Swagger UI. You can access the documentation by navigating to the root URL (`/`), which will redirect you to `/swagger-ui.html`.\n\n## Data Models\n\n### OrderServiceData\nRepresents an order in the system. (Detailed structure to be implemented)\n\n### TopSalesData\nRepresents the sales statistics for products. (Detailed structure to be implemented)\n\n## Dependencies\n- Spring Boot\n- Spring Web\n- MongoDB\n- Springfox Swagger UI\n\n## Setup and Configuration\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/RealChAuLa/OrderMicroService.git\n2. Navigate to the project directory:\n   ```sh\n   cd OrderMicroService\n3. Build the project using Maven:\n   ```sh\n   mvn clean install\n4. Run the application:\n   ```sh\n   mvn spring-boot:run\n\n\n## License\n  This project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealchaula%2Fordermicroservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealchaula%2Fordermicroservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealchaula%2Fordermicroservice/lists"}