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

support pseudo-polymorphic API endpoints #20

Open
domanchi opened this issue Sep 20, 2019 · 0 comments
Open

support pseudo-polymorphic API endpoints #20

domanchi opened this issue Sep 20, 2019 · 0 comments
Labels
enhancement New feature or request nice to have Feature ideas to attempt when time is less limited

Comments

@domanchi
Copy link
Contributor

Background Context

Sometimes, endpoints have the following structure to them:

/{item_type}/{item_id}

where a different item_type would indicate to the server to check a different item_id. This is "pseudo-polymorphic" because the swagger specifications would be the same; but the behavior is different depending on input.

Issue

In a single run, we'd probably want to check for the many different types of item_type, and run tests on their corresponding item_id. How can we support this? I'd imagine the difficult part of this implementation is modifying the fixture architecture such that it can know which object to generate, depending on the item_type.

@domanchi domanchi added enhancement New feature or request nice to have Feature ideas to attempt when time is less limited labels Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nice to have Feature ideas to attempt when time is less limited
Projects
None yet
Development

No branches or pull requests

1 participant