This is a migrated thread and some comments may be shown as answers.

Spring Data Rest or Hypermedia / HATEOAS

1 Answer 114 Views
General Disccussions
This is a migrated thread and some comments may be shown as answers.
Shannon
Top achievements
Rank 1
Shannon asked on 25 Jan 2015, 06:11 AM
Will Kendoui read json returned in a HAL/Hypermedia format?

{
"_links": {
"self": {
"href": "http://localhost:8080/api/leads{?page,size,sort}",
"templated": true
},
"next": {
"href": "http://localhost:8080/api/leads?page=1&size=20{&sort}",
"templated": true
}
},
"_embedded": {
"leads": [
{
"status": "Open",
"accountName": "Foley, Tatiana",
"firstName": "Ezra",
"lastName": "Cline",
"description": "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.",
"howDidYouHear": "Lorem ipsum dolor sit amet,",
"referringUrl": "http://google.com",
"userIp": "augue.",
"resolvedHost": "Nisi Nibh Consulting",
"addressType": "Home",
"addressLine1": "9290 Lectus Rd.",
"addressLine2": "quis",
"addressCity": "Banff",
"addressState": "BA",
"addressPostalCode": "E6 1JG",
"addressCountry": "UK",
"emailType": "Home",
"address": "purus@a.edu",
"emailOptOut": true,
"phoneType": "Home",
"phoneNumber": "890-6930",
"phoneExt": "678",
"_links": {
"self": {
"href": "http://localhost:8080/api/leads/1"
},
"websites": {
"href": "http://localhost:8080/api/leads/1/websites"
},
"leads": {
"href": "http://localhost:8080/api/leads/1/leads"
},
"socials": {
"href": "http://localhost:8080/api/leads/1/socials"
}
}
},
......

1 Answer, 1 is accepted

Sort by
0
Shannon
Top achievements
Rank 1
answered on 25 Jan 2015, 06:28 AM
Looks like it was easier than I thought.

<kendo:dataSource-schema  data="_embedded.leads" total="totalElements">

Now to make server side paging work :-(
Tags
General Disccussions
Asked by
Shannon
Top achievements
Rank 1
Answers by
Shannon
Top achievements
Rank 1
Share this question
or