People
Get a collection
GET /people HTTP/1.1Query string parameters
All query string parameters are optional.
-
callbackstring -
Wraps the response in a callback function of the given name. Use this parameter to facilitate JSONP requests.
-
channelscomma-separated list of IDs -
Return people assigned to the given channels.
-
excluded_idscomma-separated list of IDs -
Returns people, except those with the given IDs.
-
idscomma-separated list of IDs -
Return people with the given IDs.
-
order_bycomma-separated list -
Sort people by one or more
ORDER_BYandORDERparameter pairs. Options:Format:
ORDER_BY|ORDER[,ORDER_BY|ORDER,...]Default value:
last_name|asc -
pageinteger -
Return people from a specific page of a collection.
Default value:
1 -
per_pageinteger -
Number of people to return per page of a collection. Maximum:
100Default value:
5 -
typecomma-separated list -
Return people of a specific type. Options:
faculty_expert,media_rep
Response
In the example response, embedded people are truncated for illustrative purposes. In the real-world version of the response, "...person object..." is an entire person resource.
{
"_embedded": {
"people": [
"...person object...",
"...person object...",
"...person object...",
"...person object...",
"...person object..."
]
},
"_links": {
"find": {
"href": "/people/{?id}",
"templated": true
},
"next": {
"href": "/people?page=3"
},
"prev": {
"href": "/people?page=1"
},
"self": {
"href": "/people?page=2"
}
},
"page": 1,
"per_page": 5,
"return_count": 5,
"total_available": 100
}Attributes
-
_linkshash -
Links to resources associated with the person collection.
-
_links.findlink object -
A templated link that can be used to find a specific resource in the collection.
-
_links.find.hrefstring -
URI of the link.
-
_links.find.templatedboolean -
Identifies the href as a templated URI.
-
_links.nextlink object -
A link to the next set of resources in the collection. If there is not a next page, this link will not be present.
-
_links.next.hrefstring -
URI of the link.
-
_links.prevlink object -
A link to the previous set of resources in the collection. If there is not a previous page, this link will not be present.
-
_links.prev.hrefstring -
URI of the link.
-
_links.selflink object -
A link that identifies the current resource.
-
_links.self.hrefstring -
URI of the link.
-
pageinteger -
The page number of the returned collection.
-
per_pageinteger -
The number of people requested per page.
-
return_countinteger -
Number of people returned.
-
total_availableinteger -
Total number of people available in the collection.
Get one
GET /people/:id HTTP/1.1Endpoint parameters
-
idinteger required -
The unique identifier of the person.
Response
GET /people/38506
{
"_embedded": {
"faculty_expert_affiliations": null,
"faculty_expert_topics": null,
"headshot": null
},
"_links": {
"self": {
"href": "/people/38506"
}
},
"cell_phone": null,
"email": "aadalja1@jhu.edu",
"first_name": "Amesh ",
"id": 38506,
"last_name": "Adalja",
"office_phone": null,
"slug": "amesh-adalja",
"title": [
"Assistant Professor, Bloomberg School of Public Health",
"Senior Scholar, Johns Hopkins University Center for Health Security"
],
"twitter": "@AmeshAA",
"type": "faculty_expert",
"url": "https://hub.jhu.edu/experts/profiles/amesh-adalja/"
}Attributes
-
_embeddedhash -
Embedded resources.
-
_embedded.faculty_expert_affiliations[]array|null -
An array of faculty expert affiliations assigned to the person or
nullif none are assigned. -
_embedded.faculty_expert_topics[]array|null -
An array of faculty expert topics assigned to the person or
nullif none are assigned. -
_embedded.headshot[]array -
An array containing the file assigned as the headshot image of the person or
nullif not assigned -
_linkshash -
Links to resources associated with the person.
-
_links.selflink object -
A link that identifies the current resource.
-
_links.self.hrefstring -
URI of the link.
-
cell_phonestring -
emailstring -
first_namestring -
idinteger -
Unique identifier of the person.
-
last_namestring -
office_phonestring -
slugstring -
The last part of the URL that identifies the resource.
-
titlearray -
An array of titles that describe the person’s job and/or status within Johns Hopkins.
-
twitterstring -
The person’s Twitter handle, without the @ prefix.
-
typestring -
Type of resource.
-
urlstring -
Full URL of the person’s profile. Only present
faculty_expertstypes.
Get a subcollection
A subcollection is a collection of objects contained within a person.
GET /people/:id/:subcollection HTTP/1.1Endpoint parameters
-
idinteger - The unique identifier of the person.
-
subcollectionstring -
The name of the subcollection to retrieve. Options:
articles, orchannels
Query string parameters
To filter the subcollection, see the list of available parameters associated with the chosen subcollection:
Response
See the response associated with the chosen subcollection: