-
-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an exists endpoint in API #2325
Conversation
It should allow third party to check if an url was already saved by a user
|
||
$content = json_decode($this->client->getResponse()->getContent(), true); | ||
|
||
$this->assertEquals(true, $content['exists']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that necessary to add a test for inexistent entry?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, yeah, there is never enough test :)
👍 |
Can this be improved to support arrays of urls liked @ThibaudDauce asked ? |
Yep it can. |
Should fix #1796
It should allow third party to check if an url was already saved by a user