aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle
Commit message (Collapse)AuthorAgeFilesLines
* Fix API pagination is broken if perPage is custom valueadev2017-05-081-1/+2
| | | | Fix #2720
* Fix display the form errors correctlyadev2017-05-051-1/+5
| | | | | | | | | Use `property_path` form option to map underscored form fields to object properties @see https://github.com/symfony/symfony/issues/9162#issuecomment-25431148 Fix #3067
* Be consistent between migration & schema definitionJeremy Benoist2016-12-191-1/+1
|
* Fix tests & deprecation noticeJeremy Benoist2016-12-152-1/+1
|
* Return 304 when content isn't reloaded using the APIJeremy Benoist2016-11-221-3/+3
| | | | | | 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-6/+3
|
* Fixing testsJeremy Benoist2016-11-201-1/+1
|
* Add ability to reload entry from APIJeremy Benoist2016-11-201-0/+48
|
* CleanupJeremy Benoist2016-11-032-18/+1
|
* Fix rest controller mergeJeremy Benoist2016-11-034-0/+141
|
* Merge remote-tracking branch 'origin/master' into 2.2Jeremy Benoist2016-11-034-641/+563
|\
| * Removed useless routeNicolas Lœuillet2016-10-281-5/+0
| |
| * Exploded WallabagRestController into many controllersNicolas Lœuillet2016-10-284-521/+551
| | | | | | | | Fix #2503
* | Add entry.saved event to import & restJeremy Benoist2016-11-021-1/+8
| |
* | Added relation between API Client and UserNicolas Lœuillet2016-10-242-3/+22
| | | | | | | | Fix #2062
* | Add test on /api/annotationsJeremy Benoist2016-10-221-16/+17
| | | | | | | | | | | | | | Fix controller forward in WallabagRestController. Update PHPDoc so it is sorted the same way as others one Duplicate all annotations test to use both api & normal way Also, make annotation tests independent to each other
* | CSJeremy Benoist2016-10-221-1/+0
| |
* | Added a missing namespaceNicolas Lœuillet2016-10-221-0/+1
| |
* | fix cs and phpdocThomas Citharel2016-10-221-18/+6
| |
* | csThomas Citharel2016-10-221-6/+13
| |
* | move codeThomas Citharel2016-10-221-56/+31
| |
* | csThomas Citharel2016-10-221-3/+0
| |
* | bring annotations to APIThomas Citharel2016-10-221-0/+132
| |
* | CSJeremy Benoist2016-10-151-1/+0
| |
* | 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-122-6/+31
|\ \ | |/ |/| API: ability to export entry in all available format (epub, pdf, etc...)
| * Add entry export in APIJeremy Benoist2016-10-082-16/+32
| | | | | | | | | | 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
| |
| * Routing: epub format is allowed for APIPascal MARTIN2016-10-081-0/+2
| |
* | Merge pull request #2411 from wallabag/fix-entitiesNicolas Lœuillet2016-10-102-2/+2
|\ \ | | | | | | Fix entities definition
| * | Fix entities definitionJeremy Benoist2016-10-092-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | As per Doctrine said in the debug tool bar: - The field Wallabag\ApiBundle\Entity\Client#refreshTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\RefreshToken#client does not contain the required 'inversedBy="refreshTokens"' attribute. - The field Wallabag\ApiBundle\Entity\Client#accessTokens is on the inverse side of a bi-directional relationship, but the specified mappedBy association on the target-entity Wallabag\ApiBundle\Entity\AccessToken#client does not contain the required 'inversedBy="accessTokens"' attribute.
* | | 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-083-0/+157
|\ \ | | | | | | Changed relation between API client and refresh token
| * | Ensure access_token are removedJeremy Benoist2016-10-083-0/+152
| | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | Changed relation between API client and refresh tokenNicolas Lœuillet2016-10-031-0/+5
| | | | | | | | | | | | Fix #2350
* | | 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
* Fix typos in field nameJeremy Benoist2016-08-231-1/+1
|