You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to this issue: #416, I need to define a route, but using route causes some really bad API blueprint formatting (putting GET and PUT together in one section is really confusing).
If you don't use route, then param in get(param) should be an URL as states in the rest of this documentation.
So I tried:
get "/api/customers" do
parameter :keyword, 'Filter search content', :example => 'John', :type => 'string'
let(:keyword) { "John" }
example_request "List All Customers" do
expect(response_status).to eq(200)
end
end
But all I get is this error: undefined method route_uri' for #<RSpec::Core::Example "List All Customers"> (NoMethodError)
I don't know if my code is wrong, the readme is wrong, or the gem doesn't work with the get(param) format. Documentation is scarce. Any ideas?
The text was updated successfully, but these errors were encountered:
According to this issue: #416, I need to define a route, but using
route
causes some really bad API blueprint formatting (putting GET and PUT together in one section is really confusing).The readme says:
So I tried:
But all I get is this error:
undefined method route_uri' for #<RSpec::Core::Example "List All Customers"> (NoMethodError)
I don't know if my code is wrong, the readme is wrong, or the gem doesn't work with the
get(param)
format. Documentation is scarce. Any ideas?The text was updated successfully, but these errors were encountered: