Skip to content

Commit

Permalink
fix examples controller tag name "example_resuest_description" -> "ex…
Browse files Browse the repository at this point in the history
…ample_request_description"
  • Loading branch information
Sebastian Pape committed May 31, 2012
1 parent d955545 commit b23a366
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions example/app/controllers/examples_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,22 @@ class ExamplesController
#
# @example_request {}
# @example_request_description Just requests an index of samples.
# @example_response {"examples": [{"id":1, "title":"Animals", "text":"Dogs and cats are some.", "highlight":true}, {"id":2, "title":"Computers", "text":"Windows PC or Apple's Macintosh.", "highlight":false}]}
# @example_response
# ```json
# {
# "examples": [{
# "id":1,
# "title":"Animals",
# "text":"Dogs and cats are some.",
# "highlight":true
# },{
# "id":2,
# "title":"Computers",
# "text":"Windows PC or Apple's Macintosh.",
# "highlight":false
# }]
# }
# ```
# @example_response_description Responds with the index of examples.
#
# @example_request {"highlight": true}
Expand Down Expand Up @@ -90,7 +105,7 @@ def show
# @optional [Boolean] example.highlight The highlight status of the new example. (Default is false)
#
# @example_request {"example": {"title":"Fish", "text": "Angel- or Butterflyfish"}}
# @example_resuest_description Create a new example for fish.
# @example_request_description Create a new example for fish.
# @example_response {}
# @example_response_description Responds with an empty hash and status: 201 (Created).
#
Expand Down

0 comments on commit b23a366

Please sign in to comment.