Sha256: cb84d938cc7f652a56c4b8fb58a5980e24b32b7cc7138ffb35ff5d865d999fd9
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
resource :products do collection do post :create do schema :product, :for => [:payload, :response] end get :index do schema :product, :for => [:response], :without => [:category] end end member do url_param(:id) { schema_id(:product) } get :show put :update delete(:destroy) { no_schema } end end resource :categories do schema :category collection do post :create get :index end member do url_param(:id) { schema_id(:category) } get :show put :update delete :destroy get :products, '/products' do schema :product end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
restspec-0.1 | examples/store-api-tests/spec/api/restspec/endpoints.rb |