Daniel (dB.) Doubrovkine
Daniel (dB.) Doubrovkine
This doesn't work (on the with-mongoid branch) for `_post`. ``` ruby require 'hyperclient' client = Hyperclient.new('http://localhost:9292/api') 3.times do |i| client.splines._post(spline: { name: i.to_s, reticulated: [true, false].sample }) end client.splines.each do...
Grape exposures give you `entity_name`, `exposures` and `documentation`. We can add those for out-of-the-box support for https://github.com/tim-vandecasteele/grape-swagger. ``` ruby module Grape module Roar module Representer def self.included(base) base.extend(ClassMethods) end module...
In https://github.com/dblock/grape-roar/blob/master/lib/grape/roar/formatter.rb#L6, I think `MultiJson.dump` should also pass `env` as the second parameter.
See https://github.com/intridea/grape/issues/827, we want to be able to write: ``` ruby requires :spline, type: Acme::Api::Presenters::SplinePresenter ```
See https://github.com/dblock/grape-with-roar/blob/765b6fc0c117e70546161ced37da86cc0e18a8d4/api/extensions/crud_extension.rb, a simple CRUD extension that lets you write API crud in a much more elegant way. #### create ``` ruby spline = create Acme::Models::Spline, with: Acme::Api::Presenters::SplinePresenter, from: params[:spline]...
If you put `present instance, with: Presenter` inside a cache block, it cannot be serialized. That is because its implementation looks like this: ``` ruby def represent(object, options = {})...
The example JSON is not valid JSON, missing a few quotes and commas. This is related to https://github.com/slackhq/slack-api-docs/issues/37.