mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Refactor request_factory & response_validator
This commit is contained in:
@@ -4,4 +4,9 @@ class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :null_session
|
||||
|
||||
wrap_parameters format: [ :json ]
|
||||
|
||||
respond_to :json
|
||||
rescue_from 'ActionController::UnknownFormat' do |ex|
|
||||
head :not_acceptable
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
class AuthTestsController < ApplicationController
|
||||
wrap_parameters Blog
|
||||
respond_to :json
|
||||
|
||||
# POST /auth-tests/basic
|
||||
def basic
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
class BlogsController < ApplicationController
|
||||
wrap_parameters Blog
|
||||
respond_to :json
|
||||
|
||||
# POST /blogs
|
||||
def create
|
||||
|
||||
Reference in New Issue
Block a user