Implement Selfoss API 5.0.0 #71

Closed
opened 2022-10-02 10:47:10 +00:00 by davidoskky · 2 comments
Contributor

Selfoss 2.19 will have a new api version (https://github.com/fossar/selfoss/pull/1360).
As far as I can see, the application should work seamlessly with most of these changes but we should add a couple of tests to make sure that everything works correctly.

Changes are:

  • Get /login is deprecated and POST /login will have to be used; this is already planned in #53 and should be backward compatible with all api versions. This is a breaking change.
  • POST /source/delete/:id is deprecated in favour of DELETE /source/:id, the latter is what is already being used in the application
  • GET /logout is deprecated in favour of the new DELETE /api/session/current this function is not currently in use by the application but should be implemented to close #53 taking into account the different handling according to api version.
  • POST /source/update and POST /source/:id/update now return a 403 error upon failed authentication; this should already be correctly handled by the application.
Selfoss 2.19 will have a new api version (https://github.com/fossar/selfoss/pull/1360). As far as I can see, the application should work seamlessly with most of these changes but we should add a couple of tests to make sure that everything works correctly. Changes are: - `Get /login` is deprecated and `POST /login` will have to be used; this is already planned in #53 and should be backward compatible with all api versions. This is a breaking change. - `POST /source/delete/:id` is deprecated in favour of `DELETE /source/:id`, the latter is what is already being used in the application - `GET /logout` is deprecated in favour of the new `DELETE /api/session/current` this function is not currently in use by the application but should be implemented to close #53 taking into account the different handling according to api version. - `POST /source/update` and `POST /source/:id/update` now return a 403 error upon failed authentication; this should already be correctly handled by the application.
AmineB added the
Priority = Normal
Type = Chore
labels 2022-10-02 10:54:24 +00:00
AmineB added this to the Version 2 milestone 2022-10-02 10:54:28 +00:00
Author
Contributor

I checked it now, DELETE /source/:id and GET /update work correctly with the current implementation.

I checked it now, `DELETE /source/:id` and `GET /update` work correctly with the current implementation.
Owner

The three first points are done.

The last one will be in #99.

The three first points are done. The last one will be in #99.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Louvorg/ReaderForSelfoss-multiplatform#71
No description provided.