This is a simple mailing list system with Spring Security, JPA/Hibernate and thymeleaf. This application has an API to subscribe and unsubscribe from lists and a simple UI to manage mailing lists and export subscriptions.
- Clone this repository with
git clone https://github.com/toppev/spring-mailing-list.git
orgit clone git@github.com:toppev/spring-mailing-list.git
- Configure
src/main/resources/application.properties
- Build with
./gradlew build
- The jar file is located at
./build/libs
directory. Run it withjava -jar <jar file>
POST /api/v1/subscribe/{listId}
- Example request:
{"email": "example@email.com"}
- Responds:
201 CREATED
POST /api/v1/unsubscribe/{listId}
- Example request:
{"email": "example@email.com"}
- Responds:
200 OK