-
Notifications
You must be signed in to change notification settings - Fork 197
API : Element Sets
jimsafley edited this page Jun 3, 2013
·
4 revisions
Return data about the specified element set:
GET /element_sets/:id
{
"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"}
}
Return data about element sets:
GET /element_sets
- name: string
- record_type: string
An array of JSON element set representations (see above).
Create a new element set.
POST /element_sets
{
"name": "Dublin Core",
"description": "The Dublin Core metadata element set is common to all Omeka records."
}
Location: http://yourdomain.com/api/element_sets/:id
An JSON representation of the newly created element set (see above).
Edit an existing element set.
PUT /element_sets/:id
{
"name": "Dublin Core",
"description": "The Dublin Core metadata element set is common to all Omeka records."
}
An JSON representation of the newly edited element set (see above).
Delete an element set. "Dublin Core" and "Item Type Metadata" element sets may not be deleted.
DELETE /element_sets/:id
An 204 No Content
response.