{"id":21656806,"url":"https://github.com/hardik-panchariya/nimap-task-machine-test","last_synced_at":"2026-05-03T09:39:07.015Z","repository":{"id":264192894,"uuid":"892237569","full_name":"HARDIK-PANCHARIYA/Nimap-Task-Machine-Test","owner":"HARDIK-PANCHARIYA","description":"This project is a Java-based backend application developed as part of a recruitment process for Nimap Infotech. It is built using Spring Boot and focuses on creating and managing categories and products with a one-to-many relationship. The project adheres to best practices in REST API development, leveraging JPA, Hibernate","archived":false,"fork":false,"pushed_at":"2024-11-22T14:45:48.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-07T04:47:23.502Z","etag":null,"topics":["api","hibernate","java","jpa","pagination","restful-api","spring","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HARDIK-PANCHARIYA.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-11-21T18:40:31.000Z","updated_at":"2024-11-22T15:00:33.000Z","dependencies_parsed_at":"2024-11-22T15:25:26.387Z","dependency_job_id":"25c2761c-7600-480b-bc39-b72a910c1391","html_url":"https://github.com/HARDIK-PANCHARIYA/Nimap-Task-Machine-Test","commit_stats":null,"previous_names":["hardik-panchariya/nimap-task"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HARDIK-PANCHARIYA/Nimap-Task-Machine-Test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARDIK-PANCHARIYA%2FNimap-Task-Machine-Test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARDIK-PANCHARIYA%2FNimap-Task-Machine-Test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARDIK-PANCHARIYA%2FNimap-Task-Machine-Test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARDIK-PANCHARIYA%2FNimap-Task-Machine-Test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HARDIK-PANCHARIYA","download_url":"https://codeload.github.com/HARDIK-PANCHARIYA/Nimap-Task-Machine-Test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HARDIK-PANCHARIYA%2FNimap-Task-Machine-Test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269201195,"owners_count":24377453,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","hibernate","java","jpa","pagination","restful-api","spring","spring-boot"],"created_at":"2024-11-25T09:17:34.964Z","updated_at":"2026-05-03T09:39:06.972Z","avatar_url":"https://github.com/HARDIK-PANCHARIYA.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Nimap Task**\n\nThis project is a Java-based backend application developed as part of a recruitment process for Nimap Infotech. It is built using Spring Boot and focuses on creating and managing categories and products with a one-to-many relationship. The project adheres to best practices in REST API development, leveraging JPA, Hibernate, and server-side pagination.\n\n---\n\n## **Index**\n\n- [Features](#features)  \n- [Technologies Used](#technologies-used)  \n- [API Documentation](#api-documentation)  \n  - [Base URL](#base-url)  \n  - [Category APIs](#category-apis)  \n  - [Product APIs](#product-apis)  \n- [Getting Started](#getting-started)  \n  - [Prerequisites](#prerequisites)  \n  - [Steps to Run](#steps-to-run)  \n- [Project Structure](#project-structure)   \n\n---\n\n## **Features**\n\n1. **Category Management**:\n   - Create, read, update, and delete (CRUD) categories.\n   - API endpoints for managing category operations.\n\n2. **Product Management**:\n   - CRUD operations for products.\n   - Association with categories (one-to-many relationship).\n\n3. **One-to-Many Relationship**:\n   - A single category can have multiple associated products.\n   - While fetching product details, the corresponding category details are included.\n\n4. **Server-Side Pagination**:\n   - Implemented pagination for fetching large datasets of categories and products.\n\n5. **Database Configuration**:\n   - RDBMS (e.g., MySQL) integration with Spring Data JPA.\n   - Annotation-based configuration (no XML).\n\n---\n\n## **Technologies Used**\n\n- **Backend Framework**: Spring Boot  \n- **Database**: MySQL  \n- **ORM**: JPA and Hibernate  \n- **Build Tool**: Maven  \n- **Java Version**: Java 17+   \n\n---\n\n## **API Documentation**\n\n### **Base URL**  \n```\nhttp://localhost:8080\n```\n\n### **Category APIs**\n| Method | Endpoint                        | Description                  |\n|--------|---------------------------------|------------------------------|\n| GET    | `/api/categories?page={page}`   | Retrieve all categories      |\n| POST   | `/api/categories`               | Create a new category        |\n| GET    | `/api/categories/{id}`          | Retrieve a category by ID    |\n| PUT    | `/api/categories/{id}`          | Update a category by ID      |\n| DELETE | `/api/categories/{id}`          | Delete a category by ID      |\n\n---\n\n### **Product APIs**\n| Method | Endpoint                        | Description                  |\n|--------|---------------------------------|------------------------------|\n| GET    | `/api/products?page={page}`     | Retrieve all products        |\n| POST   | `/api/products`                 | Create a new product         |\n| GET    | `/api/products/{id}`            | Retrieve a product by ID     |\n| PUT    | `/api/products/{id}`            | Update a product by ID       |\n| DELETE | `/api/products/{id}`            | Delete a product by ID       |\n---\n\n## **Getting Started**\n\n### **Prerequisites**\n- Install Java 17 or higher.  \n- Install MySQL and create a database.  \n- Set up Maven.\n\n### **Steps to Run**  \n1. Clone the repository:  \n   ```bash\n   git clone https://github.com/HARDIK-PANCHARIYA/Nimap-Task.git\n   ```  \n2. Navigate to the project directory:  \n   ```bash\n   cd Nimap-Task\n   ```  \n3. Configure database credentials in `application.properties`:  \n   ```properties\n   spring.datasource.url=jdbc:mysql://localhost:3306/your_database_name\n   spring.datasource.username=your_username\n   spring.datasource.password=your_password\n   ```  \n4. Run the project:  \n   ```bash\n   mvn spring-boot:run\n   ```  \n5. Access the API:  \n   - API Endpoints: `http://localhost:8080`  \n---\n\n## **Project Structure**\n\n```plaintext\nsrc/\n├── main/\n│   ├── java/\n│   │   └── com.core/\n│   │       ├── controller/  # REST controllers for APIs\n│   │       ├── service/     # Business logic\n│   │       ├── repository/  # Data persistence layer\n│   │       ├── model/       # Entity classes\n│   │       └── exception/   # Centralized exception handling\n│   └── resources/\n│       ├── application.properties  # Configuration file\n│       └── schema.sql              # Database schema\n```\n----","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardik-panchariya%2Fnimap-task-machine-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardik-panchariya%2Fnimap-task-machine-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardik-panchariya%2Fnimap-task-machine-test/lists"}