Update status endpoint

This commit is contained in:
Luka Murn 2018-10-06 11:47:23 +02:00
parent be06630109
commit 7b5a65416a
2 changed files with 3 additions and 3 deletions

View file

@ -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]

View file

@ -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