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
Import ApiProvider & Parser from NelmioApiDocBundle #225
Conversation
c1b9108
to
76a9d05
Compare
nelmio/NelmioApiDocBundle#695 has been merged, but in order to make it work until the next nelmio api doc release, I added a way to hot fix the |
1bf22b0
to
427ae1c
Compare
427ae1c
to
9a79924
Compare
👍 |
9a79924
to
2050f56
Compare
What do you think of this PR @willdurand? |
Any updates on this? |
@willdurand has said this looks good https://twitter.com/couac/status/659045556149485568 |
and ensure the compatibility with NelmioApiDoc ^2.9 by removing old provider and parser definitions.
2050f56
to
1ecaed0
Compare
I just tried the PR which fixes the following error:
However, no API methods from DunglasApiBundle are now displayed: I'm using dev-master of the NelmioAPIDocBundle ( nelmio/NelmioApiDocBundle@eafa2ad latest as of now) as well as DunglasApiBundle branch nelmio_import (ogizanagi@1ecaed0 latest as of now). Is this the expected behavior? |
@FELICITUS : No it isn't. But actually, I've not worked on this PR since its creation, except a quick rebase 19 days ago. I could have a look in the next days. dunglas_api:
nelmio_api_doc: true |
You're right, I forgot this configuration option, mainly because it's missing from the NelmioApiDocBundle Documentation. In fact, I'm bitten again by nelmio/NelmioApiDocBundle#678, so I can't test further. |
@dunglas No decision on this yet? It'd be great if the |
ping @sroze @theofidry I still have to merge this into the |
Ok to merge it. Can you adopt the bridge structure like in the v2-metadata branch? |
It should be merged for master only. Not in v1. |
Hi everybody. |
The 1.1@dev version should work (but some dependencies for using Behat are not ready yet, such as Mink). |
For now I still advise you to use Symfony 2.8. |
Thank you for your advice. For now, I get a success on /api/doc with following configuration : composer.json "repositories": [
{
"type": "vcs",
"url": "https://github.com/reminec/DunglasApiBundle.git"
}
],
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.0.*",
"dunglas/api-bundle": "dev-nelmio_import",
"nelmio/api-doc-bundle": "^2.9"
},
My fork is a fork of @ogizanagi branch with 2 fix :
Maybe I will be face of some other issues in the future... |
Did you use the 1.x or the master branch previously (there is no support for Nelmio yet in master)? |
What did you mean by 1.x branch ? Edit : I rebase from master, not 1.x |
Hi everyone ! @reminec : If you or anyone else can take back my work where I've left it, you'll do me a favour :) |
@reminec The @ogizanagi I'm willing to take over, as I'm definitely interested in getting this merged. (As you can see, I've been bugging people here for the longest time. Heh...) |
Re ! You can find this at https://github.com/reminec/DunglasApiBundle/tree/nelmio_import |
Done in #410 |
and ensure the compatibility with NelmioApiDoc ^2.9 by removing old provider and parser definitions.
This is a draft on how to proceed to migrate the nelmio api doc extension stuff into the Api bundle.
Note it will not work without nelmio/NelmioApiDocBundle#695 (as currently).
Tests should of course also be ported into the bundle.
Documentation should be updated.
With this PR, the Nelmio API Doc support must be explicitly enabled in the configuration:
The compiler pass is needed in order to ensure the support of NelmioApiDoc ^2.9, until the old provider and parser are removed from the NelmioApiDocBundle.
When a new NelmioApiDoc version is released with those removals, the compiler pass could be removed. Then we'll have something clean for the first api bundle official release.
What do you think ?
Related to #219 and #156