menu

Elide

Elide is a java library built to make it easy to expose JPA beans as either a JSON API or a GraphQL webservice

Channels
Team

Relationships are not coming in json-api response from springboot with elide

May 24, 2020 at 4:12pm

Relationships are not coming in json-api response from springboot with elide

May 24, 2020 at 4:12pm
I am new to Elide framework. I just read the documentation and tried few sample application with mysql database with jpa. It works as expected and I could see json-api specification complaint response. I am not getting links (both self and related) under relationships. Can anyone help me what configurations i need to do to get relationships in the response ?

May 25, 2020 at 9:42pm
Links is one of the few JSON-API features Elide does not currently support unfortunately.
  • reply
  • like

May 27, 2020 at 1:39pm
This is one of the important feature in our project. Any idea when this feature will be available as part of Elide framework ?
  • reply
  • like

June 1, 2020 at 6:24pm
It is not currently planned - but would be happy to coach and review a community submission. Our priorities right now are bug fixes (as they come up) and features that enable analytic capabilities.
  • reply
  • like

June 3, 2020 at 6:56am
thanks
  • reply
  • like
Another question is, where do we add our custom validation in the Elide framework. Do we have controller in Elide framework if we need to intercept and do input data validation ?
Edited
  • reply
  • like

June 3, 2020 at 9:15pm
You can use JSR303 annotations in your Elide models for validation. Also, I think link support might get picked up but it might take a few weeks to merge this in. Someone from the community already did the bulk of the heavy lifting. The work needs to be rebased and made configurable (https://github.com/yahoo/elide/issues/282)
  • reply
  • like