ash_json_api icon indicating copy to clipboard operation
ash_json_api copied to clipboard

It is not possible to use a generic action with ash_json_api

Open user20230119 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. Right now it is not possible to use a generic action with ash_json_api unfortunately

Describe the solution you'd like Add a warning in the docs that it is not possible to use a generic action with ash_json_api unfortunately https://hexdocs.pm/ash_json_api/getting-started-with-json-api.html

Describe alternatives you've considered You would need to make your own route/controller and call the action, and pass the result into our serializer

Express the feature either with a change to resource syntax, or with a change to the resource interface

Right now it is not possible to use a generic action with ash_json_api unfortunately

Additional context https://discord.com/channels/711271361523351632/711271361523351636/1162969517845118976 image

user20230119 avatar Oct 25 '23 11:10 user20230119