Reputation: 1
Title: Spring Boot POST Request Not Extracting Name and Email from Input
Problem:
I’ve created a Spring Boot application with a service and controller class to extract the name and email from a conversation string sent in a POST request. The endpoint returns 200 OK in Postman, but the response does not contain the extracted name and email as expected.
Input Example:
json
{
"conversation": "My name is John Doe and my email is [email protected] contact at 9865421464"
}
Expected Output:
json
{
"name": "John Doe",
"email": "[email protected]"
}
Actual Output:
json
{
"message": "No relevant information found."
}
Upvotes: -1
Views: 22