Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FA10 | Retrieve folders

GET

/favourites/folders

...

Free access to published DDB folders and all NEWSPAPER folders

(warning) Login required for user folder

Remarks

  • Endpoint could be used in 3 usage modes.

Usage modes

ModeDescriptionUsageAuthentification
InstitutionSearch for folders of an institution in DDB (without login)Only use institution param (portal DDB is fixed)no Login
PublicSearch for public DDB folders (without login)Use no param (portal is not used)
UserSearch user folders (with login)Use params userId/portal/title alone or in combination

Query parameters

NameValueOccurenceDefaultRequired
userIdID of userOnce-At least userId or title required
portalName of used portalOnceDDBOptional for DDB, for other portals required
titleTitle of folderOnce-At least userId or title required
institutionID of institutionOnce-Only ID of institution
offsetBeginn offset of resultsOnce0 (Solr default is used)Optional
sizeSize data of resultsOnce10 (Solr default is used)Optional

...

POST

/favourites/folders/{id}

User permission required

Remarks

  • Only DDB portal: The folder favorites is protected and could not be modified.

...

DELETE

/favourites/folders/{id}

User permission required

Remarks

  • Only DDB portal: The folder favorites is protected and could not be deleted here.

...

DELETE

/favourites/folders/{id}/bookmarks/{bookmarkId}

User permission required

Remarks

  • The folder ID and bookmark ID must exist before deleting something.
  • Only for DDB portal:A bookmark could not be deleted from the main folder (favorites), because this is done only if the bookmark is deleted (see Delete Bookmark).

...

DELETE

/favourites/folders

User permission required

Remarks

  • This endpoint deletes all stored bookmarks and folders from a user for every portal.

...

POST

/favourites/download

User permission required

Remarks

  • Only valid formats are possible. If an invalid format will be used, then the request will rejected with 400 Bad Request.

...

GET

/favourites/folders/public

Remarks

  • This endpoint needs no authentificated user.
  • The query only searches for folders with given institution id.

...

  • Model object to hold a bookmark (= favorites)

Remarks

  • The possible types of a bookmark are:
    • CULTURAL_ITEM | INSTITUTION | ENTITY | NEWSPAPER | ARTICLE

...