This Spring Boot application provides endpoints to check if a given email domain or email address is from a disposable email provider.
To run the application locally, make sure you have Java and Gradle installed on your system. Then, follow these steps:
- Clone this repository to your local machine.
- Navigate to the project directory.
- Run the following command to build the project:
./gradlew build
- Once the build is successful, run the following command to start the application:
./gradlew bootRun
The application will start on the default port 8072
.
Endpoint: /mail/check-disposable-domain/{domain}
This endpoint checks if the given domain is disposable or not. Replace {domain}
with the domain name you want to check.
Example Request:
GET /mail/check-disposible-domain?domain=example.com HTTP/1.1
Host: localhost:8072
Endpoint: /mail/check-disposable-email/{email}
This endpoint checks if the domain of the given email address is disposable or not. Replace {email}
with the email address you want to check.
Example Request:
GET /mail/[email protected] HTTP/1.1
Host: localhost:8072
- Java
- Spring Boot
- Gradle
- opencsv
You can pull the Docker image from Docker Image
Contributions are welcome! If you have any suggestions, improvements, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.