ash-project / ash_json_api

The JSON:API extension for the Ash Framework
https://hexdocs.pm/ash_json_api
MIT License
56 stars 40 forks source link

It is not possible to use a generic action with ash_json_api #105

Closed user20230119 closed 2 months ago

user20230119 commented 10 months ago

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

zachdaniel commented 2 months ago

This has been added in main of ash_json_api.