assert response body based on spec examples

This commit is contained in:
domaindrivendev
2016-02-23 00:30:10 -08:00
parent 071239727a
commit 9ad7a49e6d
16 changed files with 218 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
Rails.application.routes.draw do
mount SwaggerRails::Engine => '/api-docs'
resources :blogs, defaults: { :format => :json }
resources :blogs, only: [ :create, :index, :show ]
mount SwaggerRails::Engine => '/api-docs'
end