From 7b5a65416a597d076360e4cc4613193ee4c93039 Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Sat, 6 Oct 2018 11:47:23 +0200 Subject: [PATCH] Update status endpoint --- config/initializers/extends.rb | 2 +- spec/controllers/api/api_controller_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/initializers/extends.rb b/config/initializers/extends.rb index d186191da..15eea86f5 100644 --- a/config/initializers/extends.rb +++ b/config/initializers/extends.rb @@ -61,7 +61,7 @@ class Extends repository_asset_value: :asset] # List of implemented core API versions - API_VERSIONS = ['20170715'] + API_VERSIONS = ['v1'] # Array used for injecting names of additional authentication methods for API API_PLUGABLE_AUTH_METHODS = [:azure_jwt_auth] diff --git a/spec/controllers/api/api_controller_spec.rb b/spec/controllers/api/api_controller_spec.rb index 90aa792ba..68a7ec432 100644 --- a/spec/controllers/api/api_controller_spec.rb +++ b/spec/controllers/api/api_controller_spec.rb @@ -16,8 +16,8 @@ describe Api::ApiController, type: :controller do expect { hash_body = json }.not_to raise_exception expect(hash_body).to match( 'message' => I18n.t('api.core.status_ok'), - 'versions' => [{ 'version' => '20170715', - 'baseUrl' => '/api/20170715/' }] + 'versions' => [{ 'version' => 'v1', + 'baseUrl' => '/api/v1/' }] ) end end