Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server respond with objects #1231

Merged
merged 17 commits into from
Dec 12, 2022

Conversation

k9withabone
Copy link
Contributor

@k9withabone k9withabone commented Nov 29, 2022

As discussed on matrix, this updates the server so that it always responds with an object, never an array. This simplifies processing the response for clients in other languages. I didn't actually test the changes so that probably should be done before merging.

Changes:
- `findAll` (GET /api/libraries)
- `getLibraryUserPersonalizedOptimal` (GET /api/libraries/<ID>/personalized)
- `getAuthors` (GET /api/libraries/<ID>/authors)
- `reorder` (POST /api/libraries/order)
Changes:
- `batchGet` (POST /api/items/batch/get)
Changes:
- `findAll` (GET /api/users)
Changes:
- `findAll` (GET /api/collections)
Changes:
- `getPaths` (GET /api/filesystem)
Changes:
- `search` (GET /api/authors/search)
Changes:
- `search` (GET /api/series/search)
Changes:
- `findCovers` (GET /api/search/covers)
- `findBooks` (GET /api/search/books)
- `findPodcasts` (GET /api/search/podcast)
Changes:
- `getAllTags` (GET /api/tags)
@advplyr
Copy link
Owner

advplyr commented Nov 30, 2022

I realize now a lot of these are used in the mobile app. Collections, libraries, shelves, etc. so this is going to have to wait until the next mobile app release.

@advplyr
Copy link
Owner

advplyr commented Dec 12, 2022

Unfortunately I missed the /personalized and the /search/podcast route in the mobile app.
I reverted those as well as /search/books.

Since I want to merge this without waiting for another mobile app release we will have to lease those 3 out.

@advplyr advplyr merged commit 05d10b7 into advplyr:master Dec 12, 2022
@k9withabone k9withabone deleted the server/respond-with-objects branch December 19, 2022 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants