grape

https://github.com/intridea/grape

Ruby

An opinionated framework for creating REST-like APIs in Ruby.

Grape::DSL::RequestResponse::ClassMethods#format

Specify the format for the API's serializers.
May be `:json`, `:xml`, `:txt`, etc.

Source | Google | Stack overflow

Edit

git clone [email protected]:intridea/grape.git

cd grape

open lib/grape/dsl/request_response.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Grape--DSL--RequestResponse--ClassMethods-format-for-pr


# Commit to git

git add lib/grape/dsl/request_response.rbgit commit -m "better docs for Grape::DSL::RequestResponse::ClassMethods#format"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Grape--DSL--RequestResponse--ClassMethods-format-for-pr

hub pull-request


# Celebrate!