We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to specify an array of objects as a result of an operation?
The text was updated successfully, but these errors were encountered:
I never try on that, but usually the response class is a JSON model. If you want an array objects, i suggest you wrap the array into an object.
Sorry, something went wrong.
I am configuring via yml and it appears it can be done.
for your responseClass just do array[Model]
e.g.,
responseClass: array[User]
just specify the model (User in this case) as you normally would.
@BlackBarn Thanks!
No branches or pull requests
Is it possible to specify an array of objects as a result of an operation?
The text was updated successfully, but these errors were encountered: