Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Wrong documentation for delete method? #6

@ghost

Description

def get(self, record_id: str, link_id: str) -> AccessLink:
"""
Get information about access link for record.
https://inveniordm.docs.cern.ch/reference/rest_api_drafts_records/#get-an-access-link
"""
url = self._p._endpoint(f"/records/{record_id}/access/links/{link_id}")
r = self._p.client.get(url)
_raise_on_error_status(r)
return AccessLink.parse_obj(r.json())
def delete(self, record_id: str, link_id: str):
"""
Get information about access link for record.
https://inveniordm.docs.cern.ch/reference/rest_api_drafts_records/#get-an-access-link
"""
url = self._p._endpoint(f"/records/{record_id}/access/links/{link_id}")
r = self._p.client.delete(url)
_raise_on_error_status(r)

In line 236 I would expect some 'delete' information. Something like "Delete information about access link for record."?

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