Skip to content

Support projection argument #67

@mpbraendle

Description

@mpbraendle

From https://github.com/DSpace/RestContract/blob/main/projections.md

"All GET requests returning a HAL document support an optional projection argument, specifying the name of an alternative representation of the requested resource.

Projections may add to, modify, or omit information from the default representation of a resource."

Projections are listed in https://github.com/DSpace/DSpace/tree/main/dspace-server-webapp/src/main/java/org/dspace/app/rest/projection

For example, we would need the allLanguages projection to fetch translations of community titles, e.g.

https://www.zora.uzh.ch/server/api/core/communities/b86be514-77e9-4a4c-9cf0-f688b0f497d4?projection=allLanguages

As far as I see, the client.py methods currently only support embeds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions