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

Igniter setup multipart parser #218

Closed maennchen closed 1 month ago

maennchen commented 1 month ago

Is your feature request related to a problem? Please describe.

WIth #214, a parser needs to be added to the Plug.Parser config in the endpoint.

Describe the solution you'd like

Add the parser.

Describe alternatives you've considered

None

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

plug Plug.Parsers,
  #                                         V====================V
  parsers: [:urlencoded, :multipart, :json, AshJsonApi.Plug.Parser],
  pass: ["*/*"],
  json_decoder: Jason

Additional context

Continued from #214

zachdaniel commented 1 month ago

This has been complete din main :)