Spring Data Rest or Hypermedia / HATEOAS

2 posts, 0 answers
  1. Shannon
    Shannon avatar
    6 posts
    Member since:
    Jul 2014

    Posted 25 Jan 2015 Link to this post

    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"
    }
    }
    },
    ......
  2. Shannon
    Shannon avatar
    6 posts
    Member since:
    Jul 2014

    Posted 25 Jan 2015 Link to this post

    Looks like it was easier than I thought.

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

    Now to make server side paging work :-(
  3. UI for ASP.NET AJAX banner
Back to Top