Nelmioapidocbundle: Show needed roles

Created on 28 Dec 2017  路  4Comments  路  Source: nelmio/NelmioApiDocBundle

In 2.x, there is a lock icon and it would show "Needs ROLE_API" for example to know what roles are needed to call the APIs. This feature seems missing in 3.0, or did I miss anything? Thanks!

Most helpful comment

I'll be able to do it next weekend.

All 4 comments

It's indeed missing, it would be a great adding though. PRs are welcome :)

I'll be able to do it next weekend.

@konradpodgorski, do you plan to work on this feature?

Up !

I'm actually moving from symfony 2.8 to 3.4.
I thought it was a good time to rework my ApiDoc annotation as I went from 2.x to 3.3.0.

But after running the given migration command I couldn't figure out how to specify the roles needed by the user to be able to call the API as the old annotation authenticationRoles={"MYROLE"} did.

Now I know why :P

I would really appreciate this option to come back as it is a downgrade for the project :/

But still, gj for the work you already did, the new 3.x UI seems quiet promising!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

numediaweb picture numediaweb  路  4Comments

timotheemoulin picture timotheemoulin  路  5Comments

manseuk picture manseuk  路  6Comments

ajaypatelbardoli picture ajaypatelbardoli  路  6Comments

abidichrak picture abidichrak  路  5Comments