Follow these steps to quickly start the project:
-
Open a terminal and navigate to the project directory:
cd demo2
-
Build the Docker image (ensure Docker is running):
docker build -t demo-app .
-
Run the Docker container:
docker run -p 8080:8080 demo-app
This will start the application and make it accessible on port 8080.
To test the endpoints using Postman, follow these steps:
- Open Postman.
- Import the JSON file located in the
testscreen
directory. - Use the imported collection to test the 4 types of endpoint queries.
This will allow you to quickly and easily test the functionality of your endpoints.
- URL Parameter Validation in CustomerService
- Ensures all URL parameters are valid.
- Form Information Validation via CustomRequest Class
- Validates additional form data.
- H2 Database for Simulating Production Database
- Uses H2 database to mimic a production environment.
- Adds simulation data for testing purposes.
- Data Filtering from H2 Database
- Filters data retrieved from the H2 database.
- Data Submission via Endpoints
- Allows data to be submitted through defined endpoints.
- Detailed Error Messages for Bad Requests
- Provide comprehensive error messages for invalid parameters.
- User Credential Validation
- Validate user credentials for authentication.
- Paginated Data Responses
- Implement pagination to reduce response times.
- Enhanced Data Filtering
- Filter returned data by additional criteria such as pickup date, etc.