The Daily Wisdom App backend is responsible for generating random quotes from the Quotable API and allowing users to send these quotes to an email recipient using JMS.
-
Random Quote Endpoint:
- URL:
/api/quotes/random
- Method: GET
- Description: Retrieves a random quote from the Quotable API.
- URL:
-
Send Quote by Email Endpoint:
- URL:
/api/quotes/sendEmail
- Method: POST
- Parameters:
quote
: The quote object to send. This should be a JSON object with the same structure as the quote objects returned by the Random Quote Endpoint.email
: The email address of the recipient.
- Description: Sends the selected quote to the specified email address. The quote should be provided in the request body along with the recipient's email address.
- URL:
The backend of the Daily Wisdom App is hosted on a free instance provided by Render. Please note that due to the nature of the free instance, it may spin down during periods of inactivity. This could potentially delay the initial request by 50 seconds or more.
The web service is deployed using a Dockerfile. This allows for a consistent and reproducible environment, regardless of where the application is being run.
The web service can be accessed through the following link: https://daily-wisdom-springboot.onrender.com/api/quotes/random