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 authorization checker feature to get crud #12

Merged
merged 1 commit into from
Feb 14, 2019
Merged

Conversation

Nek-
Copy link
Contributor

@Nek- Nek- commented Feb 14, 2019

You can now define a crud controller this way in routing:

get_awesome_result:
    controller: 'melodiia.crud.controller.get'
    path: '/api/v1/foo/{id}'
    methods: ['GET']
    defaults:
        melodiia_model: 'My\Entity'
        melodiia_serialization_group: 'some_group'
        documentation_disabled: true
        melodiia_security_check: 'view'

@mrburns mrburns merged commit bb91000 into master Feb 14, 2019
@Nek- Nek- deleted the feature/voter-check branch February 14, 2019 21:29
Nek- added a commit to Nek-/Melodiia that referenced this pull request Nov 26, 2021
Until now when returning a collection it was not standardized. This is
fixed.
This fix biig-io#12
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