aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle
Commit message (Collapse)AuthorAgeFilesLines
* Fix some Scrutinizer issuesJeremy Benoist2019-05-293-4/+4
|
* Merge pull request #3944 from shtrom/always-hash-exists-urlJérémy Benoist2019-05-281-33/+47
|\ | | | | Always hash exists url
| * Remove useless methodsJeremy Benoist2019-05-241-2/+2
| | | | | | | | Also fix a phpdoc block
| * Add Wallabag\CoreBundle\Helper\UrlHasherOlivier Mehani2019-05-241-18/+23
| | | | | | | | Signed-off-by: Olivier Mehani <shtrom@ssji.net>
| * EntryRestController::getEntriesExistsAction: always find by hashed urlOlivier Mehani2019-05-241-31/+40
| | | | | | | | | | | | | | | | | | | | | | Simplify the logic from #3158 by hashing all the urls from the request, and only doing a search by hash. This allows to get performance benefits from the new indexed hash column even when using older clients that do not hash the URL in the request. Fixes: #3158, #3919 Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* | Fix because of some breaking changes of Graby 2.0adev2019-05-281-3/+1
|/
* Merge pull request #3960 from wallabag/api-entries-2817Jérémy Benoist2019-05-211-1/+5
|\ | | | | api/entries: add parameter detail to exclude or include content in response
| * api/entries: add parameter detail to exclude or include content in responseKevin Decherf2019-05-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | detail=metadata will nullify the content field of entries in order to make smaller responses. detail=full keeps the former behavior, it sends the content of entries. It's the default, for backward compatibility. Fixes #2817 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | Cascade delete on oauth2 table when deleting a userJeremy Benoist2019-05-103-0/+3
|/
* Fix ApiDoc about md5/sha1Jérémy Benoist2019-04-021-2/+2
|
* Some cleanupJeremy Benoist2019-04-011-1/+0
| | | | Also, do not run the hashed_url migration into a Doctrine migration
* Keep url in exists endpointJeremy Benoist2019-04-011-25/+30
| | | | | | - Add migration - Use md5 instead of sha512 (we don't need security here, just a hash) - Update tests
* Hash the urls to check if they existThomas Citharel2019-04-011-11/+25
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-04-011-4/+17
|\
| * EntryRestController: add support of expect parameter to delete actionKevin Decherf2019-02-201-4/+17
| | | | | | | | | | | | | | | | | | | | | | The expect parameter enables an application to request the whole entry or only the id when requesting its deletion. `expects` defaults to `entry` to prevent any API breakage. Fixes #3711 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | Force default_protocol to generate an url inputJeremy Benoist2019-02-081-0/+1
| |
* | Fix third argument to RouteJeremy Benoist2019-01-222-4/+2
| |
* | Factorize sendResponse between Api controllersJeremy Benoist2019-01-223-38/+19
| | | | | | | | And run newer cs fixer
* | [wallabag/wallabag#2611] Fix PHPCS lint errorsCraig Roberts2019-01-221-6/+0
| |
* | Fixes [wallabag/wallabag#2611] Add a basic Search REST endpointCraig Roberts2019-01-222-0/+96
| | | | | | | | | | | | | | - Adds a new `search` key to `src/Wallabag/ApiBundle/Resources/config/routing_rest.yml` - Reuses the `getBuilderForSearchByUser` method from the EntryRepository - Supports, `term`, `page`, and `perPage` query parameters - Some very basic tests
* | Add a new endpoint to retrieve information from the wallabag instanceJeremy Benoist2019-01-151-0/+20
| | | | | | | | | | | | | | Useful for api client which required some information. We might add more inside them in the future. The endpoint /api/version should be avoided now as it contains not so much information rather the version.
* | Merge remote-tracking branch 'origin/master' into 2.4Jeremy Benoist2019-01-154-25/+49
|\|
| * Avoid error when a bad `order` parameter is givenJeremy Benoist2019-01-141-13/+18
| | | | | | | | Only allowed parameter are asc & desc
| * Merge pull request #3831 from wallabag/fix/api-bad-client-idJérémy Benoist2019-01-102-1/+20
| |\ | | | | | | Cast client id to avoid PG error
| | * Cast client id to avoid PG errorJeremy Benoist2019-01-092-1/+20
| | | | | | | | | | | | If someone send a malformated client_id when trying to authenticate using the API we got a 500 if wallabag use postgres because the request send a string instead of an integer.
| * | TagRestController: rewrite delete actions to only retrieve tags related to ↵Kevin Decherf2018-12-301-11/+11
| |/ | | | | | | | | | | | | | | the user Fixes #3815 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* | Fix utf8mb4 on vendor tablesJeremy Benoist2018-11-283-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating the schema for test these tables use default length for string: 255. Which fail when using utf8mb4. > Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes Also move the `setKeepStaticConnections` in before and after class to avoid: > SAVEPOINT DOCTRINE2_SAVEPOINT_2 does not exist See https://github.com/dmaicher/doctrine-test-bundle#troubleshooting
* | Jump to Symfony 3.4Jeremy Benoist2018-10-041-1/+1
| | | | | | | | | | | | | | Thanks to the BC compatibility, almost nothing have to be changed. All changes are related to new bundle version of: - SensioFrameworkExtraBundle - DoctrineFixturesBundle
* | Entry: add sort parameter archivedSébastien Viande2018-09-211-1/+1
| |
* | Entry: add archived_at property and updateArchived methodSébastien Viande2018-09-211-2/+2
|/
* php-cs-fixerKevin Decherf2018-09-052-6/+6
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* api: copy entry object before sending, to keep idKevin Decherf2017-12-171-1/+4
| | | | | | Workaround for https://github.com/wallabag/android-app/issues/646 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Fix empty title and domain_name when exception is thrown during fetchKevin Decherf2017-12-131-0/+16
| | | | | | | | | | Add a new helper to set a default title when it's empty: 1/ use basename part of entry's path, if any 2/ or use domain name Fixes #2053 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Fix bad key matchingJeremy Benoist2017-12-081-1/+1
| | | | | I didn't try to find which package introduced a BC (might be user-bundle or jms serializer)
* Improve origin_url field description and translationsKevin Decherf2017-11-191-2/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Add originUrl property to Entry, handle that in EntryRestController, handle ↵Kevin Decherf2017-11-191-0/+11
| | | | | | migration Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Fix #3361 Entry Rest controller getEntries cast tags params to stringSébastien Viande2017-10-131-1/+1
|
* CSJeremy Benoist2017-10-091-1/+1
|
* Jump to Symfony 3.3 & update others depsJeremy Benoist2017-10-094-9/+9
| | | | Also update tests urls
* Set a starred_at field when an entry is starred.François D2017-08-251-2/+2
| | | | | | | | This date is used to sort starred entries. Can not use Entry::timestamps method otherwise starred_at will be updated each time entry is updated. Add an updateStar method into Entry class A migration script has been added in order to set starred_at field.
* Fix some namespaces and phpdocNicolas Hart2017-07-291-0/+1
|
* Merge pull request #3266 from egilli/export-domain-as-authorJérémy Benoist2017-07-111-0/+1
|\ | | | | Use the article publisher as author for exported files
| * Use the article domain as author for export filesÉtienne Gilli2017-07-081-0/+1
| | | | | | | | | | | | | | When exporting an entry, use the domain name as author name for epub, mobi and pdf formats, instead of 'wallabag'. Change the author from array to string, because for now, there is always only one author.
* | Revert client_credentials grant typesJeremy Benoist2017-07-081-1/+1
|/
* CSJeremy Benoist2017-07-031-6/+6
|
* Fix PATCH methodJeremy Benoist2017-07-031-69/+142
| | | | | The PATCH method for the entry should only update what user sent to us and not the whole entry as it was before. Also, sending tags when patching an entry will now remove all current tags & assocatied new ones.
* Add a real configuration for CS-FixerJeremy Benoist2017-07-018-21/+21
|
* CSJérémy Benoist2017-06-281-2/+2
|
* Return null instead of falseJeremy Benoist2017-06-281-3/+27
|
* Avoid BC on exists endpointJeremy Benoist2017-06-231-2/+6
|