Back to the list of all defined endpoints
This endpoint contains the various types of items (publication, person, journal, …)
/api/core/itemtypes
A sample can be found at https://dspace7-entities.atmire.com/rest/#https://dspace7-entities.atmire.com/rest/api/core/itemtypes
{
"_embedded": {
"itemtypes": [
{
"id": 1,
"label": "Publication",
"type": "itemtype",
"_links": {
"self": {
"href": "https://dspace7-entities.atmire.com/rest/api/core/itemtypes/1"
},
"relationshiptypes": {
"href": "https://dspace7-entities.atmire.com/rest/api/core/itemtypes/1/relationshiptypes"
}
}
},
{
"id": 2,
"label": "Person",
"type": "itemtype",
"_links": {
"self": {
"href": "https://dspace7-entities.atmire.com/rest/api/core/itemtypes/2"
},
"relationshiptypes": {
"href": "https://dspace7-entities.atmire.com/rest/api/core/itemtypes/2/relationshiptypes"
}
}
}
]
},
"_links": {
"self": {
"href": "https://dspace7-entities.atmire.com/rest/api/core/itemtypes"
}
},
"page": {
"size": 20,
"totalElements": 2,
"totalPages": 1,
"number": 0
}
}
/api/core/itemtypes/<:id>
A sample can be found at https://dspace7-entities.atmire.com/rest/#https://dspace7-entities.atmire.com/rest/api/core/itemtypes/1
{
"id": 1,
"label": "Publication",
"type": "itemtype",
"_links": {
"self": {
"href": "https://dspace7-entities.atmire.com/rest/api/core/itemtypes/1"
},
"relationshiptypes": {
"href": "https://dspace7-entities.atmire.com/rest/api/core/itemtypes/1/relationshiptypes"
}
}
}
It contains a HAL link to the Relationship Types for the current Item Type (not embedded)
/api/core/itemtypes/<:id>/relationshiptypes
A sample can be found at https://dspace7-entities.atmire.com/rest/#https://dspace7-entities.atmire.com/rest/api/core/itemtypes/1/relationshiptypes It embeds the relationshiptypes which are linked to the given item type (either on the left or right side)