From fc5b291fc22afd558e789cf51d03500436fbbff4 Mon Sep 17 00:00:00 2001 From: a <96930550+lbbdeveloper@users.noreply.github.com> Date: Fri, 6 Oct 2023 21:24:36 -0400 Subject: [PATCH] chore: update swagger doc --- server/handlers/deviceConfigurationHandler/docs.js | 6 +++--- server/handlers/rawCaptureHandler/docs.js | 8 ++++---- server/handlers/sessionHandler/docs.js | 2 +- server/handlers/walletRegistrationHandler/docs.js | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/server/handlers/deviceConfigurationHandler/docs.js b/server/handlers/deviceConfigurationHandler/docs.js index c365fb6..ede7566 100644 --- a/server/handlers/deviceConfigurationHandler/docs.js +++ b/server/handlers/deviceConfigurationHandler/docs.js @@ -13,7 +13,7 @@ const singleDeviceConfigurationResponse = { content: { 'application/json': { schema: { - $ref: '#/components/schemas/Device-Configuration', + $ref: '#/components/schemas/DeviceConfiguration', }, }, }, @@ -41,10 +41,10 @@ const deviceConfigurationSwagger = { schema: { type: 'object', properties: { - tags: { + device_configurations: { type: 'array', items: { - $ref: '#/components/schemas/Device-Configuration', + $ref: '#/components/schemas/DeviceConfiguration', }, }, }, diff --git a/server/handlers/rawCaptureHandler/docs.js b/server/handlers/rawCaptureHandler/docs.js index 7eccac1..444abbf 100644 --- a/server/handlers/rawCaptureHandler/docs.js +++ b/server/handlers/rawCaptureHandler/docs.js @@ -15,7 +15,7 @@ const singleRawCaptureResponse = { content: { 'application/json': { schema: { - $ref: '#/components/schemas/Raw-Capture', + $ref: '#/components/schemas/RawCapture', }, }, }, @@ -45,10 +45,10 @@ const rawCaptureSwagger = { schema: { type: 'object', properties: { - tags: { + raw_captures: { type: 'array', items: { - $ref: '#/components/schemas/Raw-Capture', + $ref: '#/components/schemas/RawCapture', }, }, }, @@ -115,7 +115,7 @@ const rawCaptureSwagger = { content: { 'application/json': { schema: { - $ref: '#/components/schemas/Raw-Capture', + $ref: '#/components/schemas/RawCapture', }, }, }, diff --git a/server/handlers/sessionHandler/docs.js b/server/handlers/sessionHandler/docs.js index 91540d3..a639c5c 100644 --- a/server/handlers/sessionHandler/docs.js +++ b/server/handlers/sessionHandler/docs.js @@ -41,7 +41,7 @@ const sessionSwagger = { schema: { type: 'object', properties: { - tags: { + sessions: { type: 'array', items: { $ref: '#/components/schemas/Session', diff --git a/server/handlers/walletRegistrationHandler/docs.js b/server/handlers/walletRegistrationHandler/docs.js index 355c41a..6c24b33 100644 --- a/server/handlers/walletRegistrationHandler/docs.js +++ b/server/handlers/walletRegistrationHandler/docs.js @@ -13,7 +13,7 @@ const singleRawCaptureResponse = { content: { 'application/json': { schema: { - $ref: '#/components/schemas/Session', + $ref: '#/components/schemas/WalletRegistration', }, }, }, @@ -41,10 +41,10 @@ const walletRegistrationSwagger = { schema: { type: 'object', properties: { - tags: { + wallet_registrations: { type: 'array', items: { - $ref: '#/components/schemas/Session', + $ref: '#/components/schemas/WalletRegistration', }, }, },