Skip to content

Some clarifications of the documentation #386

Open
@obromios

Description

@obromios

In the README, there is an example, however I found some aspects of this confusing:

  • Twice there is a line expect(response_body).to eq(<response>), but the angle brackets do not appear to be valid?
  • It uses the route_summary and authentication keywords, but these only seem valid for the open_api format.
  • It does not include the lines:
require 'rails_helper'
require 'rspec_api_documentation/dsl'
  • it would be clearer to put #spec/acceptance/orders_spec.rb at the top of the example to make it clear where it should sit.
  • In this example, and the examples in the examples folder, an exception is triggered by giving an incorrect id. It would be also of interest to show how to generate an exception when there is a missing parameter. I am having trouble doing this, for instance, using two different versions of let(:raw_post) (one with all the required parameters and one with a required parameter missing) does not seem to work.
  • In the section on Viewers>Gemfile, would it be clearer to mention the apitome gem as well, currently it gives the impression that the raddocs gem gives access to apitome functionality. Perhaps this would be clearer
gem 'raddocs'

or

gem 'apitome'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions