28_introduce_rswag #35
1 changed files with 19 additions and 0 deletions
19
spec/requests/api/config_spec.rb
Normal file
19
spec/requests/api/config_spec.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
require 'swagger_helper'
|
||||
|
||||
describe 'Navigation API', type: :request do
|
||||
include ApiHelper
|
||||
|
||||
path '/config' do
|
||||
get 'configuration variables' do
|
||||
tags 'General'
|
||||
produces 'application/json'
|
||||
let(:api_scopes) { ['config:user'] }
|
||||
|
||||
response '200', 'success' do
|
||||
run_test!
|
||||
end
|
||||
|
||||
it_handles_invalid_token_and_scope
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue