J. King
890f9b07d4
Replace Resquest objects with PSR-7 request messages; improves #53
7 years ago
J. King
9eadd602bd
Replace Response objects with PSR-7 response messages; improves #53
While the test suite passes, this commit yields a broken server: replacing ad hoc request objectss with PSR-7 ones is still required, as is emission of PSR-7 responses. Both will come in subsequent commits, with tests
Diactoros was chosen specifically because it includes facilities for emitting responses, something which is awkward to test. The end of this refactoring should see both the Response and Request classes disappear, and the general REST class fully covered (as well as any speculative additions to AbstractHanlder).
7 years ago
J. King
79f9808f1f
CS fixes
7 years ago
J. King
84bd624e94
Properly fix getCounters
7 years ago
J. King
af42bceac0
Do not omit zero-unread items in TTRSS getCounter operation
Though TTRSS itself (usually) omits items that have a counter of zero, at least one client takes this to mean the last-seen counter is unchanged, rather than zero.
7 years ago
J. King
adece521a9
TTRSS: Correct mark toggling; fixes #132
7 years ago
J. King
9ac2421fe3
TTRSS: accept base64 passwords; fixes #130
7 years ago
J. King
3ffcd6dd97
Make TTRSS handler reject erroneous paths
7 years ago
J. King
a404d4d108
NCNv1: Be explicit about types; fixes #129
This is actually mandated by the specification: a change in data type requires a protocol version number change
7 years ago
J. King
4d4e8e3580
TTRSS: correct feed renaming; fixes #128
7 years ago
J. King
22cdc8916d
Documentation tweaks and CS fixes
7 years ago
J. King
2bbc83aeb0
Tweak
7 years ago
J. King
40e9b7f986
Changed all TTRSS outputs to match original types exactly; improves #125
7 years ago
J. King
b4890eaced
Make TTRSS tests consider data types; improves #125
7 years ago
J. King
999f255203
Fixes for bugs uncovered during client testing
7 years ago
J. King
05620602bf
Tweak
7 years ago
J. King
b820a004d6
Complete testing of TTRSS handler
Also implemented OPTIONS handling for TTRSS; improves #107
7 years ago
J. King
c669273792
Implement TTRSS operation getHeadlines; fixe #82
7 years ago
J. King
e729cedeca
Make getCompactHeadlines use a whitelist instead
7 years ago
J. King
5c140aedc4
Implement TTRSS operation getCompactHeadlines; fixes #95
This commit also implements the back-end for the standard getHeadlines operation and handles all special feeds and categories; fixes #119
7 years ago
J. King
6c8598d897
Implement contexts for non-recursive folders, and any/no label
Adjusted TTRSS handler accordingly
7 years ago
J. King
de92fb514b
Implement TTRSS opera getArticle; fixes #84
7 years ago
J. King
ea986f5032
Implement TTRSS operation updateArticle; fixes #83
This required adding the "notes" column to the arsse_marks table and adding same as a target value in Database::articleMark()
The Context class was also adjusted to remove the possibility of false positives in some tests
7 years ago
J. King
9c9c34f7fe
Implement TTRSS operation getFeeds; fixes #80
7 years ago
J. King
fff6082e3c
Adjust TTRSS catchupFeed to use shallow subscription listing
7 years ago
J. King
f22fe8ba95
Tweak catchupFeed
7 years ago
J. King
2a08edb27d
Implement TTRSS catchupFeed operation; fixes #88
7 years ago
J. King
e4ae3ca6ea
Use constants for TTRSS' special feeds and categories
7 years ago
J. King
579551f5fd
Implement TTRSS operation getFeedTree; fixes #94
7 years ago
J. King
6a700f784c
Tests for TTRSS operation setArticleLabel; fixes #90
7 years ago
J. King
5c4772d95a
CS fixes
7 years ago
J. King
d05aaf688f
Preliminary TTRSS setArticleLabel implementation
7 years ago
J. King
488a7bddac
Adapt TTRSS to new type system
7 years ago
J. King
4e3369cd03
List all valid TTRSS input
7 years ago
J. King
fbbf751214
Implement the TTRSS getLabels operation; fixes #89
7 years ago
J. King
20ff08a431
Implement TTTRSS getCounters operation; fixes #79
7 years ago
J. King
c9c6891567
Implement TTRSS getCategories; fixes #81
7 years ago
J. King
26f6922b25
Partially implement labels
- Backend functions for adding, listing, removing, and editing (renaming) labels currently implemented
- TTRSS functions for adding (fixes #96 ), removing (fixes #97 ), and renaming (fixes #98 ) labels currently implemented
7 years ago
J. King
69b34a4e5a
Implement TTRSS feed updating; fixes #86
7 years ago
J. King
03d5d554a9
Imple TTRSS functions getUnread and getConfig
- Fixes #78
- Fixes #85
7 years ago
J. King
bd6f23692c
Implement TTRSS feed subscription; fixes #92
7 years ago
J. King
97b0134e56
Merge master
7 years ago
J. King
91cce6b529
Implement all TTRSS feed and category handling except subscribing to feeds
- Fixes #93
- Fixes #100
- Fixes #101
- Fixes #102
- Fixes #103
- Fixes #104
7 years ago
J. King
5488b994f7
Merged master; CS fixes
7 years ago
J. King
1af8b733b5
Implement adding TTRSS categories; fixe #99
7 years ago
J. King
8487a56a60
Tests for TTRSS session handling and version/level reporting
- Fixes #73
- Fixes #74
- Fixes #75
- Fixes #76
- Fixes #77
7 years ago
J. King
6e19517593
Return correct TTRSS error bodies even for HTTP-level errors
TTRSS' error message for these cases (NOT_LOGGED_IN) is not especially helpful, but that's what it returns, so that's what we should return, albeit with correct HTTP status codes.
7 years ago
J. King
3a5d346b9c
Preliminary TTRSS handler
7 years ago