This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Wrong documentation for delete method? #6
Copy link
Copy link
Open
Description
iridium/iridium/inveniordm/__init__.py
Lines 223 to 242 in 4d357dc
| 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."?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels