Sha256: 5078f1d0214f39da7216ead4e7a300d27eb1ffcf91706cf3e2612fba5cb7d165
Contents?: true
Size: 549 Bytes
Versions: 4
Compression:
Stored size: 549 Bytes
Contents
resource :products do schema :product collection do post :create get :index do schema :product, without: [:category] end end member do url_param(:id) { schema_id(:product) } get :show put :update delete :destroy 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
4 entries across 4 versions & 1 rubygems