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

add 'method' to namedtuple Field to support field filtering on Link method #147

Closed
wants to merge 2 commits into from

Conversation

vdejager
Copy link

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

@tomchristie
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.

@tomchristie
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy