Element Sets¶
GET element set¶
Return data about the specified element set:
Request¶
GET /element_sets/:id HTTP/1.1
Response¶
{
"id": 1,
"url": "http://yourdomain.com/api/element_sets/1",
"record_type": null,
"name": "Dublin Core",
"description": "The Dublin Core metadata element set is common to all Omeka records.",
"elements": {
"count": 100,
"url": "http://yourdomain.com/api/elements?element_set=1",
"resource": "elements"
}
}
GET element sets¶
Return data about element sets:
Response¶
An array of JSON element set representations (see above).
POST element set¶
Create a new element set.
Request¶
POST /element_sets HTTP/1.1
{
"name": "Dublin Core",
"description": "The Dublin Core metadata element set is common to all Omeka records."
}
Response¶
HTTP/1.1 201 Created
Location: http://yourdomain.com/api/element_sets/:id
An JSON representation of the newly created element set (see above).