From 55f5a060a5abe53ed05d95ecc4080653e9dc5a1e Mon Sep 17 00:00:00 2001 From: Petr Czepiec Date: Wed, 18 Dec 2024 22:56:17 +0100 Subject: [PATCH] Add thread_id to all message API endpoints --- app/views/api/messages/search.json.jbuilder | 1 + app/views/api/messages/show.json.jbuilder | 1 + public/openapi.yaml | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/app/views/api/messages/search.json.jbuilder b/app/views/api/messages/search.json.jbuilder index 6239fc112..748b0add2 100644 --- a/app/views/api/messages/search.json.jbuilder +++ b/app/views/api/messages/search.json.jbuilder @@ -1,4 +1,5 @@ json.id @message.id +json.thread_id message.message_thread_id json.uuid @message.uuid json.title @message.title json.sender_name @message.sender_name diff --git a/app/views/api/messages/show.json.jbuilder b/app/views/api/messages/show.json.jbuilder index 6239fc112..748b0add2 100644 --- a/app/views/api/messages/show.json.jbuilder +++ b/app/views/api/messages/show.json.jbuilder @@ -1,4 +1,5 @@ json.id @message.id +json.thread_id message.message_thread_id json.uuid @message.uuid json.title @message.title json.sender_name @message.sender_name diff --git a/public/openapi.yaml b/public/openapi.yaml index cc7958f15..b8f83010a 100644 --- a/public/openapi.yaml +++ b/public/openapi.yaml @@ -136,6 +136,9 @@ paths: id: description: Identifikátor správy v systéme Govbox Pro type: integer + thread_id: + description: Identifikátor vlákna, ktorému prislúcha správa + type: integer uuid: description: UUID správy type: string @@ -213,6 +216,9 @@ paths: id: description: Identifikátor správy v systéme Govbox Pro type: integer + thread_id: + description: Identifikátor vlákna, ktorému prislúcha správa + type: integer uuid: description: UUID správy type: string