From 684c91239dfe06c9a6bcd002eca6142c877aaaec Mon Sep 17 00:00:00 2001 From: Kateryna Hrytsaienko Date: Sun, 26 Nov 2023 22:16:13 +0200 Subject: [PATCH] BAEL-7142, modify add exeption handler and service layer --- .../Spring_AI_Poetry.postman_environment.json | 25 +++++++++ .../postman/spring-ai.postman_collection.json | 56 +++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 spring-ai/postman/Spring_AI_Poetry.postman_environment.json create mode 100644 spring-ai/postman/spring-ai.postman_collection.json diff --git a/spring-ai/postman/Spring_AI_Poetry.postman_environment.json b/spring-ai/postman/Spring_AI_Poetry.postman_environment.json new file mode 100644 index 0000000000..b3d4a00bee --- /dev/null +++ b/spring-ai/postman/Spring_AI_Poetry.postman_environment.json @@ -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" +} \ No newline at end of file diff --git a/spring-ai/postman/spring-ai.postman_collection.json b/spring-ai/postman/spring-ai.postman_collection.json new file mode 100644 index 0000000000..b26652bb4e --- /dev/null +++ b/spring-ai/postman/spring-ai.postman_collection.json @@ -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": [] + } + ] +} \ No newline at end of file