Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Conversation

@vdejager
Copy link

add 'method' to namedtuple Field to support field filtering on Link method in DRF AutoSchema manual fields

@lovelydinosaur
Copy link
Contributor

I don't really understand the change as proposed.

@vdejager
Copy link
Author

The idea here was to support field description on a specific endpoint's method. i.e. a GET request to a certain endpoint may have a particular query parameter and the POST request to the same endpoint might accept a body parameter. It should be able to annotate them differently. The current way of endpoint annotation adds the parameter description to all allowed request types.

@lovelydinosaur
Copy link
Contributor

Use different sets of fields on each link for that case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants