This repository contains the codebase for a customer information management API. The primary objective is to implement CRUD operations, with a subsequent phase focused on synchronizing customer data with a remote API to ensure consistency and accuracy.
Use this first http://localhost:8080/home then api end point
-
Create Customer
- Path:
/api/create
- Method: POST
- Description: Creates a new customer in the system.
- Path:
-
Update Customer
- Path:
/api/updateDetails/{id}
- Method: PUT
- Description: Update an existing customer.
- Path:
-
Get a List of Customers
- Path:
/api/getlist
- Method: GET
- Description: Retrieve a paginated, sorted, and searchable list of customers.
- Path:
-
Get a Customer Based on ID
- Path:
/api/Customers/{customerId}
- Method: GET
- Description: Retrieve details of a given customer based on their ID.
- Path:
-
Delete a Customer
- Path:
/api/deleteById/{customerId}
- Method: DELETE
- Description: Delete a customer from system.
- Path:
-
Serach a Cutomer by Name, Email, State etc
- Path:
/api/customers/search
- Method: GET
- Description: Serach a Cutomer by Name, Email, State, City
- Path:
3rd Page (home page (customer details))
In the second part, one additional feature is added:
- Synchronize List
-
Description: A button "Sync" is added on the customer list page. By hitting this button it will triggers a call to a remote API to get the customer list. The retrieved customers are then saved in the database. If a customer already exists in the database, their information is updated instead of inserting a new record. for this you need to download frontend repositor or use postman (for postman:http://localhost:8080/home/api/customers/search/sunbase)
-
Frontend Repository -https://github.com/Prateek0712/Sunbase_Assignment_Frontend
-
- Clone this repository.
- Set up the backend environment.
- excute the code.
- Clone the fronted code.
- excute the frontend code.