From 221463d9e361bdec2fda527e17b3cf349823d516 Mon Sep 17 00:00:00 2001 From: Sergey Kirillov Date: Thu, 21 Apr 2022 18:05:57 +0400 Subject: [PATCH] Added to doc info about created_at and updated_at fields for the secrets --- .../api/cli/v1/projects/secrets_controller.rb | 4 ++-- core/swagger/v1/swagger.json | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/core/app/controllers/uffizzi_core/api/cli/v1/projects/secrets_controller.rb b/core/app/controllers/uffizzi_core/api/cli/v1/projects/secrets_controller.rb index fb9b54f7..60f7eadb 100644 --- a/core/app/controllers/uffizzi_core/api/cli/v1/projects/secrets_controller.rb +++ b/core/app/controllers/uffizzi_core/api/cli/v1/projects/secrets_controller.rb @@ -8,7 +8,7 @@ class UffizziCore::Api::Cli::V1::Projects::SecretsController < UffizziCore::Api: # # @path [GET] /api/cli/v1/projects/{project_slug}/secrets # @parameter project_slug(required,path) [string] - # @response [object> >] 200 OK + # @response [object>>] 200 OK # @response 401 Not authorized def index respond_with resource_project.secrets, root: :secrets @@ -19,7 +19,7 @@ def index # @path [POST] /api/cli/v1/projects/{project_slug}/secrets/bulk_create # @parameter project_slug(required,path) [string] # @parameter secrets(required,body) [object>>] - # @response [object>>] 201 Created + # @response [object>>] 201 Created # @response 422 A compose file already exists for this project # @response 401 Not authorized def bulk_create diff --git a/core/swagger/v1/swagger.json b/core/swagger/v1/swagger.json index 0a2d3e2e..eb486be6 100644 --- a/core/swagger/v1/swagger.json +++ b/core/swagger/v1/swagger.json @@ -884,6 +884,14 @@ "properties": { "name": { "type": "string" + }, + "created_at": { + "type": "string", + "format": "date" + }, + "updated_at": { + "type": "string", + "format": "date" } } } @@ -954,6 +962,14 @@ "properties": { "name": { "type": "string" + }, + "created_at": { + "type": "string", + "format": "date" + }, + "updated_at": { + "type": "string", + "format": "date" } } }