BAEL-7142, modify add exeption handler and service layer

This commit is contained in:
Kateryna Hrytsaienko 2023-11-26 22:16:13 +02:00
parent d0ca98b95f
commit 684c91239d
2 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{
"id": "df61838b-eb6f-4243-87ee-ca02c77e8646",
"name": "Spring_AI_Poetry",
"values": [
{
"key": "baseUrl",
"value": "localhost:8080",
"type": "default",
"enabled": true
},
{
"key": "genre",
"value": "liric",
"enabled": true
},
{
"key": "theme",
"value": "flames",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2023-11-26T19:49:21.755Z",
"_postman_exported_using": "Postman/10.20.3"
}

View File

@ -0,0 +1,56 @@
{
"info": {
"_postman_id": "f4282fac-bfe5-45b9-aae6-5ea7c43528ee",
"name": "spring-ai",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "9576856"
},
"item": [
{
"name": "Generate poetry with genre and theme",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/ai/poetry?genre={{genre}}&theme={{theme}}",
"host": [
"{{baseUrl}}"
],
"path": [
"ai",
"poetry"
],
"query": [
{
"key": "genre",
"value": "{{genre}}"
},
{
"key": "theme",
"value": "{{theme}}"
}
]
}
},
"response": []
},
{
"name": "Generate haiku about cats",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/ai/cathaiku",
"host": [
"{{baseUrl}}"
],
"path": [
"ai",
"cathaiku"
]
}
},
"response": []
}
]
}