lucacorti / jsonapi_plug

JSON:API library for Plug and Phoenix applications
https://hexdocs.pm/jsonapi_plug
MIT License
11 stars 3 forks source link

Allow restricting includes #56

Closed lucacorti closed 6 months ago

lucacorti commented 6 months ago

The code is not great, but this is the minimal amount of effort possible to get the job done.

JSONAPIPlug.Plug now accepts an includes optional argument. If specified it must contain a keyword list in the format [relationship: [subrelationship: []] that specifies all the allowed includes for the endpoint.