From 5be85f8872a81b74f64e45606b714a46b542b726 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Fri, 6 Jan 2023 15:33:10 +0100
Subject: [PATCH] Cistka API

---
 openapi.yaml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/openapi.yaml b/openapi.yaml
index 1dac0c8..9c5c6ad 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -26,7 +26,7 @@ components:
         id:
           type: integer
           readOnly: true
-          maxLength: 6
+          maxLength: 8
         shortcut:
           type: string
           description: Zkratka
@@ -34,6 +34,7 @@ components:
           type: string
           description: URL pro přesměrování
           maxLength: 1024
+          required: true
         code:
           type: integer
           description: Kód přesměrování
@@ -46,7 +47,7 @@ components:
       properties:
         period:
           type: string
-          description: Obdobi
+          description: Období
         count:
           type: integer
           description: Počet
@@ -55,7 +56,7 @@ components:
       properties:
         timestamp:
           type: string
-          description: Datum a cas
+          description: Datum a čas
         ip:
           type: string
           description: IP adresa
@@ -157,7 +158,6 @@ paths:
   /shortcuts/{id}/stat/:
     get:
       tags:
-      - shortcut
       - statistic
       security:
         - Token: []
@@ -197,7 +197,6 @@ paths:
   /shortcuts/{id}/log:
     get:
       tags:
-      - shortcuts
       - statistic
       security:
         - Token: []
-- 
GitLab