POST | /favourites/bookmarks |
---|
User permission required
Name | Value | Occurence | Default | Required |
---|---|---|---|---|
folderIds | ID of folder(s) | Multiple | - | Yes, at least one folderId |
{ "id": "rjzgAIgBdHmpxQQKvQHm", // Not used "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", // Required "description": "My important description", // Optional "userId": "fachstelle_museum", // Not used "type": "CULTURAL_ITEM", // Required "createdAt": 1683641908448, // Not used "updatedAt": 1683641908448, // Not used "keywordTool": { // Optional "done": True } } |
{ "id": "rjzgAIgBdHmpxQQKvQHm", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "My important description", "userId": "fachstelle_museum", "type": "CULTURAL_ITEM", "createdAt": 1683641908448, "updatedAt": 1683641908448, "keywordTool": { "done": True } } |
GET | /favourites/bookmarks/{id} |
---|
User permission required
{ "id": "rjzgAIgBdHmpxQQKvQHm", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "My important description", "userId": "fachstelle_museum", "type": "CULTURAL_ITEM", "createdAt": 1683641908448, "updatedAt": 1683641908448, "keywordTool": { "done": True } } |
GET | /favourites/bookmarks |
---|
User permission required
Name | Value | Occurence | Default | Required |
---|---|---|---|---|
userId | ID of user | Once | - | At least userId or one itemId required |
itemIds | IDs of items | Multiple | - | At least userId or one itemId required |
offset | Offset of result | Once | -1 | Optional |
size | Length of result | Once | -1 | Optional |
{ "query": "user:"73611165cc142ae53176707d5a92e8f3", "total": 4, "offset": 0, "size": 9999, "bookmarks": [ { "id": "rjzgAIgBdHmpxQQKvQHm", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "", "userId": "fachstelle_museum", "type": "CULTURAL_ITEM", "createdAt": 1683641908448, "updatedAt": 1683641908448, "keywordTool": { "done": False }, }, { "id": "nDxWtIgBdHmpxQQKNxNQ", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "Neues Lesezeichen", "userId": "fachstelle_museum", "type": "CULTURAL_ITEM", "createdAt": 1683641908448, "updatedAt": 1683641908448, "keywordTool": { "done": False }, } ] } |
PUT | /favourites/bookmarks/{id} |
---|
User permission required
{ "id": "rjzgAIgBdHmpxQQKvQHm", // Not used "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", // Optional "description": "Another description", // Optional "userId": "fachstelle_museum", // Not used "type": "INSTITUTION", // Optional "createdAt": 1683641908448, // Not used "updatedAt": 1683641908448, // Not used "keywordTool": { // Optional "done": false // Optional } } |
{ "id": "rjzgAIgBdHmpxQQKvQHm", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "Another description", "userId": "fachstelle_museum", "type": "INSTITUTION", "createdAt": 1683641908448, "updatedAt": 1683641908555, "keywordTool": { "done": false } } |
DELETE | /favourites/bookmarks/{id} |
---|
User permission required
{ "took": 11, "errors": false, "result": [ { "id": "TC05____________BM01", "index": "bookmark", "statusCode": 200, "result": "deleted" } ], "statusCode": 200, "statusMessage": null } |
POST | /favourites/folders |
---|
User permission required
{ "id": "73611165cc142ae53176707d5a92e8f3", // Not used "portal": "DDB", // Required | Allowed values are: DDB or NEWSPAPER "title": "favorites", // Required "description": "Das ist ein Test!", // Optional "userId": "fachstelle_museum", // Not used "publishingName": "xxx", // Optional "createdAt": 1682070216141, // Not used "updatedAt": 1683642142482, // Not used "bookmarkIds": [ // Optional "MESR_IcBosJ3rUWzhkJj", "rjzgAIgBdHmpxQQKvQHm" ], "institutionIds": [ // Optional "MESR_IcBosJ3rUWzhkJj" ], "blockingToken": "Test", // Optional "blocked": true, // Optional "published": true, // Optional "keywordTool": { // Optional "sentToAdmin": false } } |
{ "id": "73611165cc142ae53176707d5a92e8f3" "portal": "DDB", "title": "favorites", "description": "Das ist ein Test!", "userId": "fachstelle_museum", "publishingName": "xxx", "createdAt": 1682070216141, "updatedAt": 1683642142482, "bookmarksIds": [ "MESR_IcBosJ3rUWzhkJj", "rjzgAIgBdHmpxQQKvQHm" ], "institutionIds": [ "MESR_IcBosJ3rUWzhkJj" ], "blockingToken": "Test", "blocked": true, "published": true, "keywordTool": { "sentToAdmin": false } } |
POST | /favourites/folders/{folderId}/bookmarks |
---|
User permission required
Name | Value | Occurence | Default | Required |
---|---|---|---|---|
bookmarkId | ID of bookmark to add | Once | - | Yes |
{ "id": "TC07____________FL01", "index": "folder", "statusCode": 200, "result": "updated" } |
GET | /favourites/folders/{id} |
---|
Free access to published DDB folders and all NEWSPAPER folders
Login required for user folders
{ "id": "73611165cc142ae53176707d5a92e8f3" "portal": "DDB", "title": "favorites", "description": "Das ist ein Test!", "userId": "fachstelle_museum", "publishingName": "xxx", "createdAt": 1682070216141, "updatedAt": 1683642142482, "bookmarksIds": [ "MESR_IcBosJ3rUWzhkJj", "rjzgAIgBdHmpxQQKvQHm" ], "institutionIds": [ "MESR_IcBosJ3rUWzhkJj" ], "blockingToken": "Test", "blocked": true, "published": true, "keywordTool": { "sentToAdmin": false } } |
GET | /favourites/folders/{id}/bookmarks |
---|
Free access to published DDB folders and all NEWSPAPER folders
Login required for user folders
{ "query": "user:"73611165cc142ae53176707d5a92e8f3" AND folder:"p0Qyo4cBosJ3rUWznjiY"", "total": 4, "offset": 0, "size": 9999, "bookmarks": [ { "id": "rjzgAIgBdHmpxQQKvQHm", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "", "userId": "fachstelle_museum", "type": "CULTURAL_ITEM", "createdAt": 1683641908448, "updatedAt": 1683641908448, "keywordTool": { "done": False }, }, { "id": "nDxWtIgBdHmpxQQKNxNQ", "itemId": "IVMX3IRHKU725WR2HHT6VY2AFFS72FGK", "description": "Neues Lesezeichen", "userId": "fachstelle_museum", "type": "CULTURAL_ITEM", "createdAt": 1683641908448, "updatedAt": 1683641908448, "keywordTool": { "done": False }, } ] } |
GET | /favourites/folders |
---|
Free access to published DDB folders and all NEWSPAPER folders
Login required for user folder
Mode | Description | Possible params | Login required |
---|---|---|---|
Institution | Search for folders of an institution in DDB | Only institution used | No |
Public | Search for public DDB folders | Params not used | No |
User | Search user folders | Any combination of userId/portal/title | Yes |
Name | Value | Occurence | Default | Required |
---|---|---|---|---|
userId | ID of user | Once | - | At least userId or title required |
portal | Name of used portal | Once | DDB | Optional for DDB, for other portals required |
title | Title of folder | Once | - | At least userId or title required |
institution | ID of institution | Once | - | Only ID of institution |
offset | Beginn offset of results | Once | 0 (Solr default is used) | Optional |
size | Size data of results | Once | 10 (Solr default is used) | Optional |
{ "query": "user:"73611165cc142ae53176707d5a92e8f3"", "total": 19, "offset": 0, "size": 9999, "folders": [ { "id": "Sjszo4cBdHmpxQQKUvah", "portal": "DDB", "title": "Schiller", "description": "", "userId": "fachstelle_museum", "publishingName": "dio", "createdAt": 1682070262371, "updatedAt": 1683642142787, "bookmarksIds": ["MUSR_IcBosJ3rUWzmkLU"], "institutionIds": Null, "blockingToken": "", "keywordTool": { "sentToAdmin": false }, "blocked": false, "published": true}, { "id": "rjwQKYgBdHmpxQQKKgSs", "portal": "DDB", "title": "favorites", "description": "Das ist ein Test!", "userId": "fachstelle_museum", "publishingName": "xxx", "createdAt": 1682070216141, "updatedAt": 1683642142482, "bookmarksIds": [], "institutionIds": none, "blockingToken": "Test", "keywordTool": { "sentToAdmin": false }, "blocked": true, "published": true } ] } |
POST | /favourites/folders/{id} |
---|
User permission required
{ "id": "Sjszo4cBdHmpxQQKUvah", // Not used "portal": "DDB", // Required "title": "favorites", // Optional "description": "Das ist ein Test!", // Optional "userId": "fachstelle_museum", // Not used "publishingName": "xxx", // Optional "createdAt": 1682070216141, // Not used "updatedAt": 1683642142482, // Not used "bookmarksIds": [ // Optional "MESR_IcBosJ3rUWzhkJj", "rjzgAIgBdHmpxQQKvQHm" ], "institutionIds": [ // Optional "MESR_IcBosJ3rUWzhkJj" ], "blockingToken": "Test", // Optional "blocked": true, // Optional "published": true, // Optional "keywordTool": { // Optional "sentToAdmin": false } } |
{ "id": "Sjszo4cBdHmpxQQKUvah", "portal": "DDB", "title": "favorites", "description": "Das ist ein Test!", "userId": "fachstelle_museum", "publishingName": "xxx", "createdAt": 1682070216141, "updatedAt": 1683642142482, "bookmarksIds": [ "MESR_IcBosJ3rUWzhkJj", "rjzgAIgBdHmpxQQKvQHm" ], "institutionIds": [ "MESR_IcBosJ3rUWzhkJj" ], "blockingToken": "Test", "blocked": true, "published": true, "keywordTool": { "sentToAdmin": false } } |
DELETE | /favourites/folders/{id} |
---|
User permission required
{ "id": "TC12____________FL01", "index": "folder", "statusCode": 200, "result": "deleted" } |
DELETE | /favourites/folders/{id}/bookmarks/{bookmarkId} |
---|
User permission required
{ "id": "TC13____________FL01", "index": "folder", "statusCode": 200, "result": "updated" } |
DELETE | /favourites/folders |
---|
User permission required
Name | Value | Occurence | Default | Required |
---|---|---|---|---|
userId | ID of user to delete | Once | - | Yes |
{ "took": 0, "errors": false, "result": [ { "id": "TC14____________BM02", "index": "bookmark", "statusCode": 200, "result": "deleted" }, { "id": "TC14____________BM01", "index": "bookmark", "statusCode": 200, "result": "deleted" }, { "id": "TC14____________FL01", "index": "folder", "statusCode": 200, "result": "deleted" }, { "id": "TC14____________FL02", "index": "folder", "statusCode": 200, "result": "deleted" }, { "id": "TC14____________FL03", "index": "folder", "statusCode": 200, "result": "deleted" }, { "id": "TC14____________FL04", "index": "folder", "statusCode": 200, "result": "deleted" } ], "statusCode": 200, "statusMessage": "All folders and bookmarks for user <jean_paul> deleted" } |
POST | /favourites/download |
---|
User permission required
{ "bookmarkIds": [ "TC15____________BM01", "TC15____________BM02", "TC15____________BM03", "TC15____________BM04", "TC15____________BM05", "TC15____________BM06" ], "formats": [ "TXT", "CSV", "ALTO", "IMAGE" ] } |
GET | /favourites/folders/public |
---|
Name | Value | Occurence | Default | Required |
---|---|---|---|---|
institution | Institution query | Once | - | Query string for institution(s) |
offset | Beginn offset of results | Once | 0 (Solr default is used) | Optional |
size | Size data of results | Once | 10 (Solr default is used) | Optional |
{ "query": "institution:"*"", "total": 2, "offset": 0, "size": 9999, "folders": [ { "id": "Sjszo4cBdHmpxQQKUvah", "portal": "NEWSPAPER", "title": "Schiller 1", "description": "", "userId": "af43fc5bfa951c88e8e4b4574b39a65a", "publishingName": "hosc", "createdAt": 1682070262371, "updatedAt": 1683642142787, "bookmarksIds": ["MUSR_IcBosJ3rUWzmkLU"], "institutionIds": ["SV27RQJTWNOLJTNSG3ASNZSGNHBITQI2"], "blockingToken": "", "keywordTool": { "sentToAdmin": false }, "blocked": false, "published": true }, { "id": "rjwQKYgBdHmpxQQKKgSs", "portal": "NEWSPAPER", "title": "Schiller 2", "description": "", "userId": "af43fc5bfa951c88e8e4b4574b39a65a", "publishingName": "hosc", "createdAt": 1682070216141, "updatedAt": 1683642142482, "bookmarksIds": [], "institutionIds": ["SV27RQJTWNOLJTNSG3ASNZSGNHBITQI2"], "blockingToken": "", "keywordTool": { "sentToAdmin": false }, "blocked": true, "published": true } ] } |
Field | Data type | Description |
---|---|---|
id | String | ID of the bookmark (internal created by Elasticsearch) |
itemId | String | ID of the DDB object item |
description | String | User defined text to describe the list |
userId | String | AAS/LDAP managed ID of the User |
bookmarkType | String | Type of the bookmark |
createdAt | Long | Creation date of the folder in millis created by the DDB Backend |
updateAt | Long | Last Update date of the folder in millis created by the DDB Backend |
keywordTool | KeywordTool | Optional data for internal use in APD (for keyword tool) |
Field | Data type | Description |
---|---|---|
Done | Boolean | Used in APD |
Field | Data type | Description |
---|---|---|
query | String | Summary of the executed query (for debugging use) |
total | Long | Total matches |
offset | Long | Used offset (default or send by the request) |
size | Long | Used size (default or send by the request) |
bookmarks | List<Bookmark> | List of the found bookmarks by the query |
Field | Data type | Description |
---|---|---|
id | String | ID of the folder (internal created by Elasticsearch) |
portal | Portal enum | Name of used portal |
title | String | Title of the user list |
description | String | User defined text to describe the list |
userId | String | AAS/LDAP managed ID of the User |
publishingName | String | User Identifier if the list is published |
createdAt | Long | Creation date of the folder in millis created by the DDB Backend |
updateAt | Long | Last Update date of the folder in millis created by the DDB Backend |
bookmarkIds | Set<String> | List of related bookmarks IDs |
institutionIds | Set<String> | List of related institution IDs |
blockingToken | String | Optional token for internal use in APD |
blocked | Boolean | If the list is blocked for public use |
published | Boolean | If the list is published for public use |
keywordTool | KeywordTool | Optional data for internal use in APD (for keyword tool) |
Field | Data type | Description |
---|---|---|
sentToAdmin | Boolean | Used in APD |
Field | Data type | Description |
---|---|---|
query | String | Summary of the executed query (for debugging use) |
total | Long | Total matches |
offset | Long | Used offset (default or send by the request) |
size | Long | Used size (default or send by the request) |
folders | List<Folder> | List of the found folders by the query |
Value | Description |
---|---|
DDB | DDB Portal with CCC |
NEWSPAPER | Zeitungsportal |