Jeremy Benoist
4ab0d25f65
Merge remote-tracking branch 'origin/master' into 2.3
2017-05-19 11:25:19 +02:00
Thomas Citharel
91ba9a5975
Merge pull request #3095 from aaa2000/api-error-on-fail-fetch-content
...
Create a new entry via API even when its content can't be retrieved
2017-05-10 09:38:55 +02:00
adev
a9357a8311
Remove the created entry to avoid side effects on other tests
2017-05-09 23:19:24 +02:00
Jeremy Benoist
1594a79fc5
Retrieve tag / tags value from query or request
...
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)
2017-05-09 23:15:25 +02:00
Jeremy Benoist
54c2d164a3
Merge remote-tracking branch 'origin/master' into 2.3
2017-05-09 13:55:31 +02:00
adev
b60a666df2
Fix API pagination is broken if perPage is custom value
...
Fix #2720
2017-05-08 16:27:16 +02:00
adev
08f29ae7b6
Create a new entry via API even when its content can't be retrieved
...
Fix #2988
2017-05-08 14:57:25 +02:00
Nicolas Lœuillet
7d2d1d6859
Added migrations execution after fresh install
2017-05-05 15:14:58 +02:00
Nicolas Lœuillet
6980304968
Merge pull request #3053 from wallabag/api-bulk-add
...
Added API endpoint to handle a list of URL
2017-05-05 13:56:34 +02:00
Jeremy Benoist
72db15ca5d
Little refacto and send 400 on reaching urls limit
2017-05-05 12:05:50 +02:00
Nicolas Lœuillet
9c09c253fe
Merge pull request #3047 from wallabag/add-notmatches-operator
...
Added notmatches operator for tagging rule
2017-05-03 11:53:01 +02:00
Nicolas Lœuillet
efd351c98f
Added limit
2017-05-01 09:26:12 +02:00
Jeremy Benoist
7fa844a349
Fix tests (for real this time)
2017-05-01 09:26:12 +02:00
Jeremy Benoist
719ba257d3
Fix tests
2017-05-01 09:26:12 +02:00
Nicolas Lœuillet
a7abcc7b7a
Splitted the endpoint in two
2017-05-01 09:26:12 +02:00
Nicolas Lœuillet
1eca7831a6
Added API endpoint to handle a list of URL
...
By passing an array, you can add / delete URL in mass (bulk request)
2017-05-01 09:25:34 +02:00
Jeremy Benoist
dcbebc17aa
Fix tests
2017-04-29 12:58:39 +02:00
Nicolas Lœuillet
80299ed282
Added endpoint to handle URL list to add/delete tags
2017-04-24 12:24:17 +02:00
Nicolas Lœuillet
d1fc590211
Added API endpoint to handle a list of URL and to add/delete tags
2017-04-24 11:12:41 +02:00
Nicolas Lœuillet
fdd725f58c
Added notmatches operator for tagging rule
2017-04-20 15:17:02 +02:00
Thomas Citharel
ca9a83ee51
return id of article instead of true if entry exists
2017-02-24 11:31:31 +01:00
Jeremy Benoist
5cd0857e3c
Return 304 when content isn't reloaded using the API
...
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.
2016-11-22 10:45:19 +01:00
Jeremy Benoist
56da73969a
Return an explicit error if reload fail
2016-11-20 16:25:13 +01:00
Jeremy Benoist
70584b42aa
Fixing tests
2016-11-20 15:15:13 +01:00
Jeremy Benoist
0a6f4568b5
Add ability to reload entry from API
2016-11-20 13:08:41 +01:00
Jeremy Benoist
5a619812ca
Merge remote-tracking branch 'origin/master' into 2.2
2016-11-03 16:41:29 +01:00
Nicolas Lœuillet
900c844861
Exploded WallabagRestController into many controllers
...
Fix #2503
2016-10-28 14:46:30 +02:00
Nicolas Lœuillet
f24ea59ea4
Fixed migration and added tests
2016-10-28 10:55:39 +02:00
Jeremy Benoist
b1b561da51
Merge pull request #2372 from pmartin/api-get-entry-as-epub
...
API: ability to export entry in all available format (epub, pdf, etc...)
2016-10-12 14:06:33 +02:00
Nicolas Lœuillet
93a95c09bf
Merge pull request #2351 from wallabag/fix-api-client-deletion
...
Changed relation between API client and refresh token
2016-10-08 13:31:54 +02:00
Nicolas Lœuillet
4ad6f5878a
Merge pull request #2393 from wallabag/api-urls-exist
...
Ability to check multiple urls in API
2016-10-08 13:31:31 +02:00
Jeremy Benoist
3f3a60879e
Add entry export in API
...
Export isn't available for json & xml because user can use the default
entry endpoint instead.
2016-10-08 12:59:19 +02:00
Jeremy Benoist
ee32248f43
Ensure access_token are removed
...
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)
2016-10-08 00:05:41 +02:00
Jeremy Benoist
ac8cf632bb
Ensure orphan tag are remove in API
...
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!)
2016-10-07 23:31:53 +02:00
Jeremy Benoist
f0abc22d09
Ability to check multiple urls in API
2016-10-07 20:37:01 +02:00
Jeremy Benoist
0b174d69d7
Fix typo & add test
2016-10-05 19:30:56 +02:00
Jeremy Benoist
c3f8b428dd
Fix parameters in API _links
...
We forgot to pass them to the factory
2016-10-02 15:41:08 +02:00
Jeremy Benoist
55551e332c
Add test when url doesn’t exist
2016-10-01 17:26:36 +02:00
Jeremy Benoist
6273fefd5d
Add an exists endpoint in API
...
It should allow third party to check if an url was already saved by a user
2016-10-01 17:15:28 +02:00
Jeremy Benoist
f0fd82d039
Fix bad parameter for tests
2016-09-25 14:21:12 +02:00
Jeremy Benoist
a0e1eafc35
Add some tests
...
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.
2016-08-23 07:26:58 +02:00
Thomas Citharel
28803f106b
Add filter for tags on API
2016-06-29 09:55:57 +02:00
Thomas Citharel
e5fb89e5d3
Add since parameter
2016-06-25 21:05:50 +02:00
Jeremy Benoist
23634d5d84
Jump to Symfony 3.1
2016-06-22 17:59:35 +02:00