Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.
/ spring-mailing-list Public archive

My first Spring Boot project. A simple mailing list system.

License

Notifications You must be signed in to change notification settings

toppev/spring-mailing-list

Repository files navigation

spring-mailing-list

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.

Build

  1. Clone this repository with git clone https://github.com/toppev/spring-mailing-list.git or git clone git@github.com:toppev/spring-mailing-list.git
  2. Configure src/main/resources/application.properties
  3. Build with ./gradlew build
  4. The jar file is located at ./build/libs directory. Run it with java -jar <jar file>

API

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