Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include delete request parmeters in generated documentation #524

Merged

Conversation

johnnaegle
Copy link
Contributor

One of my API routes allows multiple objects to be deleted. In routing, it
looks like this:

  resources :posts do
    collection do
        delete :destroy
      end
  end

The generated examples from tests did not include the parameters. This patch
treats :DELETE like PUT/POST/PATCH and includes the parameters in the generated
examples.

One of my API routes allows multiple objects to be deleted.  In routing, it
looks like this:

```ruby
  resources :posts do
    collection do
        delete :destroy
      end
  end
```

The generated examples from tests did not include the parameters.  This patch
treats :DELETE like PUT/POST/PATCH and includes the parameters in the generated
examples
@iNecas
Copy link
Member

iNecas commented Feb 1, 2017

Makes sense. Thanks @johnnaegle

@iNecas iNecas merged commit 529eb91 into Apipie:master Feb 1, 2017
@iNecas
Copy link
Member

iNecas commented Feb 18, 2017

apipie-rails-0.4.0 has just been released, including this enhancement. Thanks @johnnaegle for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants