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
vdejager wants to merge 2 commits into
core-api:masterfrom
vdejager:feature/methodfield
Closed

vdejager wants to merge 2 commits into
core-api:masterfrom
vdejager:feature/methodfield

Conversation

@vdejager

Copy link
Copy Markdown

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

@lovelydinosaur

Copy link
Copy Markdown
Contributor

I don't really understand the change as proposed.

@vdejager

Copy link
Copy Markdown
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
Copy Markdown
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