Resting Pug logo Resting Pug

Description

Shows a subject by id

Example

GET http://your.awesome/api/books/1

Response:
200 OK
{
  "book": {
    "id": 1,
    "name": "The Green Mile",
    "author": "Stephen King"
  }
}

How to customize

Use

Source code

# lib/resting_pug/actions.rb

def show
  run_chain(show_chain)
end
Find me on GitHub