Skip to content

Latest commit

 

History

History
61 lines (48 loc) · 1.46 KB

README.md

File metadata and controls

61 lines (48 loc) · 1.46 KB

Morning Phrase Generator API

This API provides a simple way to generate personalized morning phrases based on user preferences.

📌 Features

  • Generate a customized morning phrase using a person's name and preferences.
  • RESTful API built with Spring Boot.
  • Integration with Gemini API.
  • Lightweight and easy to use.

📡 API Endpoints

📝 Generate a Morning Phrase

➤ Request

  • Method: POST
  • URL: /morning-phrase/generate
  • Content-Type: application/json
  • Body:
{
"target": "John",
"preferences": ["coffee", "reading", "morning walks"]
}

✅ Response

  • 200 OK
"Bom dia, John! Que seu café esteja forte, sua leitura inspiradora e sua caminhada matinal revigorante. Um dia lindo e cheio de conquistas para você! 😊"
  • 400 Bad Request – Invalid input
  • 500 Internal Server Error – Server-side issue

🛠️ Tech Stack

  • Java 21
  • Spring Boot 3
  • Open Feign
  • Maven
  • REST API
  • Gemini API