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

Sunset V1Api.php #1180

Open
blizzz opened this issue Jul 3, 2024 · 7 comments
Open

Sunset V1Api.php #1180

blizzz opened this issue Jul 3, 2024 · 7 comments
Labels
1. to develop Accepted and waiting to be taken care of technical debt Technical issue

Comments

@blizzz
Copy link
Member

blizzz commented Jul 3, 2024

It is only used by Api1Controller::indexTableRowsSimple() (now that the analytics datasource moved away from it in #877). Also it is an awkward thing and not the way we deal with PHP APIs in Nextcloud. It is having only one strange method anyways.

@blizzz blizzz added technical debt Technical issue 1. to develop Accepted and waiting to be taken care of labels Jul 3, 2024
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Jul 3, 2024
@juliusknorr
Copy link
Member

Would be good to check back with @stefan-niedermann if that is used in the Android app

@stefan-niedermann
Copy link
Member

Thanks for the hint, I'll have a look tomorrow...

@blizzz
Copy link
Member Author

blizzz commented Jul 4, 2024

FWIW, this is not a Controller, just some loose PHP class: https://github.com/nextcloud/tables/blob/main/lib/Api/V1Api.php

@stefan-niedermann
Copy link
Member

Looks like the Tables Android app is not affected by this change at all - as @blizzz mentioned, this is not a controller, so I assume as long as Api1Controller (or its functionality) doesn't vanish, nothing should break. Those are the endpoints used by Tables Android:

GET
/index.php/apps/tables/api/1/tables
/index.php/apps/tables/api/1/tables
/index.php/apps/tables/api/1/tables
/index.php/apps/tables/api/1/tables/{tableId}
/index.php/apps/tables/api/1/tables/{tableId}/columns
/index.php/apps/tables/api/1/columns/{columnId}
/index.php/apps/tables/api/1/tables/{tableId}/rows
/index.php/apps/tables/api/1/tables/{tableId}/rows
/index.php/apps/tables/api/1/rows/{rowId}

POST
/index.php/apps/tables/api/1/tables
/index.php/apps/tables/api/1/tables/{tableId}/columns
/index.php/apps/tables/api/1/tables/{tableId}/rows

PUT
/index.php/apps/tables/api/1/tables/{tableId}
/index.php/apps/tables/api/1/tables/{tableId}
/index.php/apps/tables/api/1/columns/{columnId}
/index.php/apps/tables/api/1/columns/{columnId}
/index.php/apps/tables/api/1/rows/{rowId}

DELETE
/index.php/apps/tables/api/1/tables/{tableId}
/index.php/apps/tables/api/1/columns/{columnId}
/index.php/apps/tables/api/1/rows/{rowId}

@blizzz
Copy link
Member Author

blizzz commented Jul 5, 2024

Yes, the Api1Controller will not change. indexTableRowsSimple() needs internal adjustments, but shall not be broken – it is not in the list either, the endpoint would have been index.php/apps/tables/api/1/tables/{tableId}/rows/simple.

@stefan-niedermann

This comment was marked as resolved.

@blizzz

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of technical debt Technical issue
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

3 participants