Skip to content

alphagov-mirror/hmrc-manuals-api

 
 

Repository files navigation

HMRC Manuals API

Provides an API for a system built by HMRC to publish tax manuals onto GOV.UK. In many ways it is analogous to a backend/admin app for publishing on GOV.UK. Content which passes validation and checks for unsanitary content is submitted to the GOV.UK Publishing API application. The application does not have a database itself. An HMRC manual consists of two document types: the manual itself and manual sections.

Nomenclature

Technical documentation

This is a Ruby on Rails app, and should follow our Rails app conventions.

You can use the GOV.UK Docker environment to run the application and its tests with all the necessary dependencies. Follow the usage instructions to get started.

Use GOV.UK Docker to run any commands that follow.

Running the test suite

bundle exec rspec

Adding a new slug

Before adding a new manual through the API, the slug for the manual must be added to /config/initializers/known_manual_slugs.rb and the application re-deployed.

The workflow for this is likely to be initiated by a Zendesk ticket raised by HMRC with the new slug. A developer can then add the slug and re-deploy the application and inform HMRC that the slug is ready to be published against.

Manuals and decisions

See the extended documentation for details:

Licence

MIT License

Packages

No packages published

Languages

  • Ruby 99.4%
  • HTML 0.6%