Supporting HATEOAS
Supporting HATEOAS
blacar
Posts: 2Questions: 1Answers: 0
Im new to datatables and wants to integrate with a server using spring-data-rest JSON HAL format
(https://tools.ietf.org/html/draft-kelly-json-hal-06)
Is this scenario supported in some way?
Can i custom parse the JSON response?
Thanks
This discussion has been closed.
Answers
Use, use
columns.data
to tell DataTables what object property to read for each column.Perhaps if you could show an example of your JSON I might be able to provide a little more help.
Allan
Thanks Allan,
I need to consume HAL formatted responses like you can see below. If you are not familiar with HAL format it has three sections: 1st links that we can overpass, 2nd instant values and 3rd _embedded entities that holds also values we want to see.
My problem it's with _embedded values ... i have no clear how to do that mapping
The example is:
Not at all - thanks for your introduction to it.
What do you want to get out of it. Is each
ea:order
a row in the table? If so then useajax.dataSrc
and set it to be_embedded.ea:order
.Allan