Skip to content

Instantly share code, notes, and snippets.

@stravid stravid/cURL request
Last active Oct 16, 2015

Embed
What would you like to do?
Lotus JSON Body Parsing
module Api::Controllers::Players
class Create
include Api::Action
expose :player
def call(params)
self.body = params[:data]
end
end
end
curl 'http://localhost:2300/api/players' --data-binary '{"data":{"attributes":{"name":"David"},"type":"players"}}' --compressed
{"data":null}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.