aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller
Commit message (Collapse)AuthorAgeFilesLines
* ApiDoc & Route annotation were conflictedJeremy Benoist2016-10-151-2/+0
| | | | | | | | | | | | The generated error was “Unable to guess how to get a Doctrine instance from the request information.”. I haven’t checked deeper in Doctrine (I know it was coming from the DoctrineParamConverter). Anyway, I check for FosRest possiblity to add extra format without allowing them for every route (like it was done in the first place). I finally found a way but it then seems all request goes to the FormatListener of FosRest so I needed to add a custom rules to match all request to be sure we don’t get a 406 error from FosRest. Should be ok now …
* Merge pull request #2372 from pmartin/api-get-entry-as-epubJeremy Benoist2016-10-121-2/+27
|\ | | | | API: ability to export entry in all available format (epub, pdf, etc...)
| * Add entry export in APIJeremy Benoist2016-10-081-10/+28
| | | | | | | | | | Export isn't available for json & xml because user can use the default entry endpoint instead.
| * API: getEntry can return EPUBPascal MARTIN2016-10-081-1/+8
| |
* | Optimize the way tag list is renderedJeremy Benoist2016-10-091-1/+1
| | | | | | | | | | | | Instead of retrieve all informations about entries of a tag to just count them, we’ll count them before with a fastest query. Also change the layout of the tag list in material design
* | Merge pull request #2351 from wallabag/fix-api-client-deletionNicolas Lœuillet2016-10-081-0/+101
|\ \ | | | | | | Changed relation between API client and refresh token
| * | Ensure access_token are removedJeremy Benoist2016-10-081-0/+101
| | | | | | | | | | | | | | | | | | | | | | | | 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-1/+21
|\ \ \ | | | | | | | | Ability to check multiple urls in API
| * | | Ability to check multiple urls in APIJeremy Benoist2016-10-071-1/+21
| | |/ | |/|
* / | Ensure orphan tag are remove in APIJeremy Benoist2016-10-071-0/+28
|/ / | | | | | | | | | | 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-1/+1
| |
* | Fix exists API callThomas Citharel2016-10-051-1/+1
|/ | | Boo
* Fix parameters in API _linksJeremy Benoist2016-10-021-2/+15
| | | | We forgot to pass them to the factory
* CSJeremy Benoist2016-10-021-1/+1
|
* Add an exists endpoint in APIJeremy Benoist2016-10-011-0/+32
| | | | It should allow third party to check if an url was already saved by a user
* Fix tags count in menuJeremy Benoist2016-09-251-3/+1
| | | | Move enable cache for Tag in the Entity because function `find*` should return result and not a Query
* Re-user JsonResponseJeremy Benoist2016-09-081-40/+27
| | | | Since Symfony 3.1 we can define the json of a JsonResonse using `->setJson()`
* Added tags counter in sidebar (material theme)Nicolas Lœuillet2016-09-041-1/+3
|
* Add some testsJeremy Benoist2016-08-231-23/+35
| | | | | | | | | | | 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.
* CSThomas Citharel2016-08-231-2/+1
|
* Delete tag or tags by labelThomas Citharel2016-08-231-0/+61
| | | | Tests not included
* Add filter for tags on APIThomas Citharel2016-06-291-1/+2
|
* CSThomas Citharel2016-06-251-1/+1
|
* Add since parameterThomas Citharel2016-06-251-1/+3
|
* PATCH also clears starred and archived signsYuriy Evdokimov2016-05-181-2/+2
|
* Starred and Archived clears if article is already existsYuriy Evdokimov2016-05-181-2/+2
|
* Set the title via POST /api/entriesNicolas Lœuillet2016-05-021-0/+5
| | | | Fix #2009
* Convert array + phpDocJeremy Benoist2016-04-121-1/+1
| | | | Thanks for https://github.com/thomasbachem/php-short-array-syntax-converter
* Remove int castNicolas Lœuillet2016-04-101-2/+2
|
* All the entries are fetched via GET /api/entriesNicolas Lœuillet2016-04-091-3/+3
| | | | Fix #1863: only the unread entries were fetched with GET /api/entries entrypoint. Now, all the entries are fetched
* add checkThomas Citharel2016-03-161-2/+6
|
* fix updating entry status through APIThomas Citharel2016-03-161-6/+2
|
* use integers for archived/starred statusThomas Citharel2016-03-161-18/+18
|
* fix api properties and typoThomas Citharel2016-03-161-2/+2
|
* Don't add entry through API if it already existsThomas Citharel2016-03-161-4/+8
|
* typos & csThomas Citharel2016-03-081-1/+3
|
* Add version in APIVincent2016-03-071-0/+13
|
* Remove 'content' from APIJeremy Benoist2016-03-041-6/+0
| | | | Waiting to find a good solution to avoid side problem since user can no define the content
* use booleans instead of emptyThomas Citharel2016-03-041-4/+4
|
* add more properties for entries #1634Thomas Citharel2016-03-041-0/+19
|
* Move assignTagsToEntry in ContentProxy helperJeremy Benoist2016-02-191-28/+3
|
* [#1604] First draft to fix SensioLabsInsight reportNicolas Lœuillet2016-01-221-1/+1
|
* Fix recent updateJeremy Benoist2016-01-151-1/+2
| | | | | | - some missing url parameters from WallabagRestController & EntryController - use a service for `EntryFilterType` to use fully qualified name instead (so changing class signature) - update ImportBundle (url & form)
* Symfony Upgrade Fixer FTWJeremy Benoist2016-01-151-2/+2
| | | | symfony-upgrade-fixer fix src/Wallabag/
* Few phpDoc fixJeremy Benoist2016-01-031-5/+15
| | | | And some little mistakes
* Cleanup testsJeremy Benoist2015-12-291-4/+0
| | | | | - WallabagRestController: remove the tag deletion from the API since we can't remove a tag now, we only remove reference to entries - RuleBasedTaggerTest: remove workaround for asserting tag are equal since problem was related to mock expects (_call instead of findOneByLabel which was removed from the tag repository)
* Fix parameters regarding documentationJeremy Benoist2015-12-291-2/+2
| | | | Parameters are `star` & `archived`, not `is_starred` & `is_archived`
* Remove user reference in tagJeremy Benoist2015-12-291-5/+12
| | | | Fix #1543
* Fix security.context deprecationJeremy Benoist2015-11-071-2/+2
|
* check authentication on each API routeNicolas Lœuillet2015-10-031-0/+19
|