mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-31 12:09:17 +08:00
Update status endpoint
This commit is contained in:
parent
be06630109
commit
7b5a65416a
2 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue