From 234d5036fd3eb53bc705cb4af7bcfc3c533279ef Mon Sep 17 00:00:00 2001 From: anatolidew Date: Tue, 30 Nov 2021 11:29:43 +0300 Subject: [PATCH] =?UTF-8?q?*=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BE=D0=BA=D1=83=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B0=D0=BF=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/main.md | 46 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 44 insertions(+), 2 deletions(-) diff --git a/docs/api/main.md b/docs/api/main.md index 73b53f3..3f149ea 100755 --- a/docs/api/main.md +++ b/docs/api/main.md @@ -258,6 +258,39 @@ `https://guild.craft-group.xyz/api/reports/index?fromDate=2021-08-01&toDate=2021-08-31&user_id=2limit=3&offset=2` +### Один отчет +`https://guild.craft-group.xyz/api/reports/{id}` +

+ Для получения отчета необходимо отправить GET запрос на URL https://guild.craft-group.xyz/api/reports/{id} +

+ +

+ Параметры: +

+ + + + + + + + + +
+ Параметры + + Значение +
+ id* + + ID отчета. +
+

+ Пример запроса на просмотр отчета с ID 13: +

+ +`https://guild.craft-group.xyz/api/reports/13` + ### Создать отчет `https://guild.craft-group.xyz/api/reports/create` @@ -295,10 +328,19 @@ - today + tasks* - Сделанное сегодня. + JSON массив содержащий объекты задач +
+[{ 
+    "task" : "Рефакторинг",
+    "created_at": 1638260728,
+    "status": 1,
+    "minutes_spent": 26,
+    "hours_spent" : 3
+}]
+