38520658ad
Fix tests
2017-07-03 07:30:54 +02:00
f808b01692
Add a real configuration for CS-Fixer
2017-07-01 09:52:38 +02:00
39ffaba323
Return null instead of false
2017-06-28 08:15:06 +02:00
18696f77fd
Avoid BC on exists endpoint
2017-06-23 08:30:23 +02:00
1112e54772
Add public filter/field in the API
...
Listing entries can now be filtered by “public”.
Creating or patching an entry can now set is to public or remove the public.
Entry response now include “is_public” boolean field
2017-06-10 15:31:57 +02:00
e9056dd96f
Fix test
...
de_DE is not valid language.
Zataz doesn’t send a valid language in their content (they use `fr-FR`).
2017-06-08 22:51:30 +02:00
645291e8fe
Add ability to patch an entry with more fields
...
Like when we create an entry, we can now patch an entry with new fields:
- content
- language
- preview_picture
- published_at
- authors
2017-06-02 20:52:49 +02:00
2a0eec07a5
Merge pull request #3137 from aaa2000/isolated-tests
...
Isolated tests
2017-06-01 07:58:17 +02:00
7ab5eb9508
Isolated tests
...
Use https://github.com/dmaicher/doctrine-test-bundle to have test isolation.
2017-05-31 16:03:54 +02:00
fb436e8ca0
Add support for authors
2017-05-31 13:59:45 +02:00
e668a8124c
Allow other fields to be send using API
...
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)
2017-05-31 13:59:45 +02:00
4ab0d25f65
Merge remote-tracking branch 'origin/master' into 2.3
2017-05-19 11:25:19 +02:00
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
a9357a8311
Remove the created entry to avoid side effects on other tests
2017-05-09 23:19:24 +02:00
54c2d164a3
Merge remote-tracking branch 'origin/master' into 2.3
2017-05-09 13:55:31 +02:00
b60a666df2
Fix API pagination is broken if perPage is custom value
...
Fix #2720
2017-05-08 16:27:16 +02:00
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
7d2d1d6859
Added migrations execution after fresh install
2017-05-05 15:14:58 +02:00
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
72db15ca5d
Little refacto and send 400 on reaching urls limit
2017-05-05 12:05:50 +02:00
9c09c253fe
Merge pull request #3047 from wallabag/add-notmatches-operator
...
Added notmatches operator for tagging rule
2017-05-03 11:53:01 +02:00
efd351c98f
Added limit
2017-05-01 09:26:12 +02:00
7fa844a349
Fix tests (for real this time)
2017-05-01 09:26:12 +02:00
719ba257d3
Fix tests
2017-05-01 09:26:12 +02:00
a7abcc7b7a
Splitted the endpoint in two
2017-05-01 09:26:12 +02:00
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
dcbebc17aa
Fix tests
2017-04-29 12:58:39 +02:00
80299ed282
Added endpoint to handle URL list to add/delete tags
2017-04-24 12:24:17 +02:00
d1fc590211
Added API endpoint to handle a list of URL and to add/delete tags
2017-04-24 11:12:41 +02:00
fdd725f58c
Added notmatches operator for tagging rule
2017-04-20 15:17:02 +02:00
ca9a83ee51
return id of article instead of true if entry exists
2017-02-24 11:31:31 +01:00
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
56da73969a
Return an explicit error if reload fail
2016-11-20 16:25:13 +01:00
70584b42aa
Fixing tests
2016-11-20 15:15:13 +01:00
0a6f4568b5
Add ability to reload entry from API
2016-11-20 13:08:41 +01:00
5a619812ca
Merge remote-tracking branch 'origin/master' into 2.2
2016-11-03 16:41:29 +01:00
900c844861
Exploded WallabagRestController into many controllers
...
Fix #2503
2016-10-28 14:46:30 +02:00