Skip to content
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

Merged
merged 3 commits into from
Oct 2, 2016
Merged

Add an exists endpoint in API #2325

merged 3 commits into from
Oct 2, 2016

Conversation

j0k3r
Copy link
Member

@j0k3r j0k3r commented Oct 1, 2016

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Documentation no
Translation no
Fixed tickets #1796
License MIT

Should fix #1796
It should allow third party to check if an url was already saved by a user

It should allow third party to check if an url was already saved by a user
@j0k3r j0k3r added this to the 2.1.0 milestone Oct 1, 2016

$content = json_decode($this->client->getResponse()->getContent(), true);

$this->assertEquals(true, $content['exists']);
Copy link
Member

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?

Copy link
Member Author

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 :)

@nicosomb
Copy link
Member

nicosomb commented Oct 2, 2016

👍

@nicosomb nicosomb merged commit 18b8dc0 into 2.1 Oct 2, 2016
@nicosomb nicosomb deleted the api-entries-exists branch October 2, 2016 11:17
@nicosomb nicosomb mentioned this pull request Oct 2, 2016
@tcitworld
Copy link
Member

tcitworld commented Oct 2, 2016

Can this be improved to support arrays of urls liked @ThibaudDauce asked ?

@j0k3r
Copy link
Member Author

j0k3r commented Oct 2, 2016

Yep it can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants