adding get_link() method and get-link endpoint #67
Copy link
Copy link
Open
Labels
Milestone
Description
Hi all
I forked the repo and added a get_link() method and get-link endpoint to fetch a single link by id:
master...andreworg:python-shaarli-client:andrew-get_link
I needed this for a project of mine (see shaarli/Shaarli#1943); I think it also serves as partial workaround for #34 (you can use get_link() to fetch all data for an existing record, then use put_link() to update the record).
I'm writing this here before submitting a PR because I have not updated the test suite yet - I'm having trouble with that - and I was wondering what to do.
Thanks
Reactions are currently unavailable
Activity
nodiscc commentedon Feb 8, 2024
Hi @andreworg
I think you should submit your patch (don't forget to update the documentation)
About the tests, I think a simple copy of
test_get_links_urihttps://github.com/shaarli/python-shaarli-client/blob/master/tests/client/test_v1.py#L141 should be fine (just replace.get_linkswith.get_link)We can start from there