From eff7bd9dcdea74d1afe54f5431a0b6421e9b458c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A1n=20Mach=C3=A1=C4=8Dek?= <xmachac5@fi.muni.cz>
Date: Sun, 26 Mar 2023 12:39:27 +0200
Subject: [PATCH] feat: Adding error message

---
 report/openapi.yaml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/report/openapi.yaml b/report/openapi.yaml
index 07e29f1..f84d9c4 100644
--- a/report/openapi.yaml
+++ b/report/openapi.yaml
@@ -26,13 +26,12 @@ servers:
         default: "8085"
 tags:
   - name: Report
-    description: Microservice for report.
+    description: Microservice for report pdf report.
 paths:
   /api/reports/flight/{id}:
     get:
       tags:
         - Report
-        - Flight
       summary: Get the report of flight.
       description: |
         Return the report of flight by its id in the PDF format
@@ -51,4 +50,10 @@ paths:
             application/pdf:
               schema:
                 type: string
-                format: binary
\ No newline at end of file
+                format: binary
+        "404":
+          description: Not Found
+          content:
+            application/json:
+              schema:
+                $ref: '../core/openapi.yaml#/components/schemas/ErrorMessage'
\ No newline at end of file
-- 
GitLab