Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active August 29, 2015 14:18
Show Gist options
  • Save mamund/fe2e6abaf417b2cbeaab to your computer and use it in GitHub Desktop.
Save mamund/fe2e6abaf417b2cbeaab to your computer and use it in GitHub Desktop.
VERSION 1:
"data": [
{
"name": "Doctor Search",
"url": "http://api.example.com/doc-search/hash/7fa891bf095e4408ac1f5f889ad2c644",
"data": [
{
"name": "Name",
"rel" : "https://api.example.com/rels/doctor-name",
"value": "Joe Noname"
},
{
"name": "Specialty",
"rel" : "https://api.example.com/rels/specialty",
"value": "Cardiology"
}
]
}]
VERSION 2:
"data": [
{
"name": "Doctor Search",
"url": "http://api.example.com/doc-search/hash/7fa891bf095e4408ac1f5f889ad2c644",
"data": [
{
"name": "doctor-name",
"value": "Joe Noname"
},
{
"name": "specialty",
"value": "Cardiology"
}
]
}]
<uber>
<!-- notes:
added "label" which is not yet in the spec
ref'd IANA values in the "doctor-search" rel property
ref'd Schema.org values in the "doctor-name" and "speciality" data element rel values
-->
<data
name="doctor-search"
label="Search for Doctors"
rel="collection search"
url="http://api.example.com/doc-search/hash/7fa891bf095e4408ac1f5f889ad2c644">
<data name="doctor-name" label="Doctor's Name" rel="https://schema.org/name https://schema.org/Physician">Jo Noname</data>
<data name="specialty" label="Doctor's Specialty" rel="https://schema.org/medicalSpecialty">Cardiology</data>
</data>
</uber>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment