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

Add NelmioApiDocBundle 3.0 support #226

Merged
2 commits merged into from
Jan 4, 2018
Merged

Add NelmioApiDocBundle 3.0 support #226

2 commits merged into from
Jan 4, 2018

Conversation

GuilhemN
Copy link
Contributor

@GuilhemN GuilhemN commented Jan 3, 2018

Q A
License MIT

Fixes #197 and #207

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, just added a question about the raw swaggerdoc route

NelmioApiDocBundle:
# Requires the Asset component and the Twig bundle
resource: "@NelmioApiDocBundle/Resources/config/routing/swaggerui.xml"
prefix: /api/doc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this include a commented out definition for exposing the swaggerdoc json as well? (it should not be on by default, but having it in here seems useful to me)

path: /api/doc.json
methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, added :)

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

methods: GET
defaults: { _controller: nelmio_api_doc.controller.swagger_ui }

# app.swagger:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this should have a comment above this line what it does

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added :)

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect!

@ghost ghost merged commit 1e92a89 into symfony:master Jan 4, 2018
ghost pushed a commit that referenced this pull request Jan 4, 2018
@GuilhemN GuilhemN deleted the nelmio branch January 4, 2018 17:19
This pull request was closed.
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.

None yet

3 participants