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.
The code is not great, but this is the minimal amount of effort possible to get the job done.
JSONAPIPlug.Plug
now accepts anincludes
optional argument. If specified it must contain a keyword list in the format[relationship: [subrelationship: []]
that specifies all the allowed includes for the endpoint.