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

Exportfiles currently returns an array object OR a boolean #53

Open
chambbj opened this issue Mar 4, 2021 · 0 comments
Open

Exportfiles currently returns an array object OR a boolean #53

chambbj opened this issue Mar 4, 2021 · 0 comments

Comments

@chambbj
Copy link
Member

chambbj commented Mar 4, 2021

Not sure the history behind why exportfiles may return a boolean instead of an array of objects. This isn't valid in OAS 3.0. I'm guessing the boolean result is returned with some set of parameters meant to return a slimmed down, faster response.

Options include:

  • always returning the exportfiles information (no boolean), perhaps with performance enhancement to speed up the response
  • returning the boolean separately, e.g., has_exportfiles or number_of_exportfiles (# > 0 indicates true)
  • always return array of exportfile pks which can be queried separately through a new endpoint (this is big shift back towards the original API design in which we made many RESTful requests)
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

No branches or pull requests

1 participant