ash-project / ash_json_api

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

Igniter setup multipart parser #218

Closed maennchen closed 4 months ago

maennchen commented 4 months 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 4 months ago

This has been complete din main :)