alphagov/hmrc-manuals-api — pull request #41 by issyl0 (2014-08-06 17:23:15+00:00)
Title: Return the GOV.UK URL to the content in the success JSON response

- Put the `govuk_url` method onto the `publishing_api_[manual|section]`
models to avoid mixing internal publishing up with external manual
validation.
- Memoize (make the variable start with `@_` (?)) to avoid calling the
`publishing_api_manual` or `publishing_api_section` methods thrice in
each controller.
(Thanks to @jennyd for helping with both of the above.)
- Send a Location header on a success response, as well as the body.