Last active
August 29, 2015 14:18
-
-
Save mamund/fe2e6abaf417b2cbeaab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
] | |
}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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