aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ApiBundle
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3137 from aaa2000/isolated-testsJérémy Benoist2017-06-014-43/+71
|\ | | | | Isolated tests
| * Isolated testsadev2017-05-314-43/+71
| | | | | | | | Use https://github.com/dmaicher/doctrine-test-bundle to have test isolation.
* | Add support for authorsJeremy Benoist2017-05-311-0/+4
| |
* | Allow other fields to be send using APIJeremy Benoist2017-05-311-0/+6
|/ | | | | | | | | | | | | | | | Entry API can now have these new fields: - content - language - preview_picture - published_at Re-use the ContentProxy to be able to do the same using the web UI (in the future). htmLawed is used to clean stuff from content, I hope it’ll be enough to avoid security breach. Lower content validation when we want to update an entry with content already defined. Before, language & content_type were required. If there weren’t provided, we re-fetched the content using graby. I think these fields aren’t required for an entry to be created. So I removed them. Which means some import from the v1 export won’t be re-fetched since they provide content, url & title. Also, remove liberation link from Readability import to avoid overlaping import (from wallabag v1, which had the same link)
* Avoid side effect on other testsJeremy Benoist2017-05-301-1/+13
|
* Re-use `NewUserType` to validate registrationJeremy Benoist2017-05-302-1/+99
| | | | | | The only ugly things is how we handle error by generating the view and then parse the content to retrieve all errors… Fix exposition fields in User entity
* Merge remote-tracking branch 'origin/master' into 2.3Jeremy Benoist2017-05-191-0/+34
|\
| * Merge pull request #3095 from aaa2000/api-error-on-fail-fetch-contentThomas Citharel2017-05-101-0/+34
| |\ | | | | | | Create a new entry via API even when its content can't be retrieved
| | * Remove the created entry to avoid side effects on other testsadev2017-05-091-8/+18
| | |
| | * Create a new entry via API even when its content can't be retrievedadev2017-05-081-0/+24
| | | | | | | | | | | | Fix #2988
* | | Retrieve tag / tags value from query or requestJeremy Benoist2017-05-091-4/+26
| | | | | | | | | | | | | | | It allows to request to delete a tag using query string instead of body parameter (which seems to be the standard). Instead of breaking the previous behavior, I used a generic way to retrieve parameter (which looks into request attributes, query parameters and request parameters)
* | | Merge remote-tracking branch 'origin/master' into 2.3Jeremy Benoist2017-05-091-0/+16
|\| |
| * | Fix API pagination is broken if perPage is custom valueadev2017-05-081-0/+16
| |/ | | | | | | Fix #2720
* | Added migrations execution after fresh installNicolas Lœuillet2017-05-051-2/+1
| |
* | Merge pull request #3053 from wallabag/api-bulk-addNicolas Lœuillet2017-05-051-7/+56
|\ \ | | | | | | Added API endpoint to handle a list of URL
| * | Little refacto and send 400 on reaching urls limitJeremy Benoist2017-05-051-4/+3
| | |
| * | Added limitNicolas Lœuillet2017-05-011-0/+23
| | |
| * | Fix tests (for real this time)Jeremy Benoist2017-05-011-2/+2
| | |
| * | Fix testsJeremy Benoist2017-05-011-4/+4
| | |
| * | Splitted the endpoint in twoNicolas Lœuillet2017-05-011-29/+26
| | |
| * | Added API endpoint to handle a list of URLNicolas Lœuillet2017-05-011-8/+38
| | | | | | | | | | | | By passing an array, you can add / delete URL in mass (bulk request)
* | | Merge pull request #3047 from wallabag/add-notmatches-operatorNicolas Lœuillet2017-05-031-2/+2
|\ \ \ | |/ / |/| | Added notmatches operator for tagging rule
| * | Added notmatches operator for tagging ruleNicolas Lœuillet2017-04-201-2/+2
| | |
* | | Fix testsJeremy Benoist2017-04-291-13/+13
| | |
* | | Added endpoint to handle URL list to add/delete tagsNicolas Lœuillet2017-04-241-11/+48
| | |
* | | Added API endpoint to handle a list of URL and to add/delete tagsNicolas Lœuillet2017-04-241-0/+31
|/ /
* / return id of article instead of true if entry existsThomas Citharel2017-02-241-2/+2
|/
* Return 304 when content isn't reloaded using the APIJeremy Benoist2016-11-221-5/+1
| | | | | | Previously it was a 400 but this is more related to a real error. Using the API user should only know the content got reloaded or not. If reloaded: 200 otherwise: 304.
* Return an explicit error if reload failJeremy Benoist2016-11-201-1/+5
|
* Fixing testsJeremy Benoist2016-11-201-3/+2
|
* Add ability to reload entry from APIJeremy Benoist2016-11-201-0/+37
|
* Merge remote-tracking branch 'origin/master' into 2.2Jeremy Benoist2016-11-033-828/+843
|\
| * Exploded WallabagRestController into many controllersNicolas Lœuillet2016-10-283-820/+835
| | | | | | | | Fix #2503
* | Fixed migration and added testsNicolas Lœuillet2016-10-281-3/+16
| |
* | Merge pull request #2372 from pmartin/api-get-entry-as-epubJeremy Benoist2016-10-121-48/+56
|\ \ | |/ |/| API: ability to export entry in all available format (epub, pdf, etc...)
| * Add entry export in APIJeremy Benoist2016-10-081-48/+56
| | | | | | | | | | Export isn't available for json & xml because user can use the default entry endpoint instead.
* | Merge pull request #2351 from wallabag/fix-api-client-deletionNicolas Lœuillet2016-10-081-0/+104
|\ \ | | | | | | Changed relation between API client and refresh token
| * | Ensure access_token are removedJeremy Benoist2016-10-081-0/+104
| | | | | | | | | | | | | | | | | | | | | | | | When we remove the client, we should ensure that access_token are also removed. To ensure that, I created a test that generated an access_token. So when we remove the client, this association should be cascaded and shouldn’t generate an error. Also I moved some Api related stuff to the ApiBundle (like the developer controler and ClientType form)
* | | Merge pull request #2393 from wallabag/api-urls-existNicolas Lœuillet2016-10-081-0/+16
|\ \ \ | | | | | | | | Ability to check multiple urls in API
| * | | Ability to check multiple urls in APIJeremy Benoist2016-10-071-0/+16
| | |/ | |/|
* / | Ensure orphan tag are remove in APIJeremy Benoist2016-10-071-0/+9
|/ / | | | | | | | | | | When the association between a tag and an entry is removed, if the tag doesn’t have other entries, we can remove it. Also add more tests for that part and ensure TagControllerTest is isolated from the rest of the test suite (finally!)
* / Fix typo & add testJeremy Benoist2016-10-051-0/+7
|/
* Fix parameters in API _linksJeremy Benoist2016-10-021-1/+99
| | | | We forgot to pass them to the factory
* Add test when url doesn’t existJeremy Benoist2016-10-011-0/+11
|
* Add an exists endpoint in APIJeremy Benoist2016-10-011-0/+11
| | | | It should allow third party to check if an url was already saved by a user
* Fix bad parameter for testsJeremy Benoist2016-09-251-1/+1
|
* Add some testsJeremy Benoist2016-08-231-3/+110
| | | | | | | | | | | Also, retrieve tag from the request instead of the query (which will be the same but it's more easy to test). Moved down `deleteTagAction` because it conflicted with the new action: api_delete_tag => /api/tags/{tag}.{_format} api_delete_tags_label => /api/tags/label.{_format} And finally, throw exception when a tag is not found before removing it.
* Add filter for tags on APIThomas Citharel2016-06-291-0/+22
|
* Add since parameterThomas Citharel2016-06-251-0/+45
|
* Jump to Symfony 3.1Jeremy Benoist2016-06-222-0/+564