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

Automate response types based on return types from controllers #35

Open
4 tasks
marcotas opened this issue Aug 11, 2022 · 0 comments
Open
4 tasks

Automate response types based on return types from controllers #35

marcotas opened this issue Aug 11, 2022 · 0 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@marcotas
Copy link
Contributor

marcotas commented Aug 11, 2022

  • if response is a Paginator: invoke get method, transforms the result and set the header to json type.
  • if response is a Pagination instance: transforms the result and set the header to json type.
  • if response is a string or number it returns as html unless stated otherwise.
  • if response is a Map or a List it returns as json
@marcotas marcotas added this to the v1.0.0 milestone Aug 13, 2022
@marcotas marcotas linked a pull request Dec 18, 2022 that will close this issue
@marcotas marcotas removed a link to a pull request Dec 18, 2022
@marcotas marcotas self-assigned this May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant