We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently we have the OCSResponse in OCP https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http/OCSResponse.php
However I question the use of this. Since people writing OCS code will use the OCSController which takes a DataResponse: https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http/OCSResponse.php
On top of that the first OCSResponse parameter is the format string https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http/OCSResponse.php#L57 which is weird since it is the job of the AppFramework/Controller to set this properly. When I'm writing my endpoint I don't want to care. I just want to return data.
So what I propose:
Good/bad idea? Comments? @BernhardPosselt @LukasReschke @nickvergessen @MorrisJobke
The text was updated successfully, but these errors were encountered:
I assume your silence means go for it ;) I'll tackle this soonish
Sorry, something went wrong.
👍
But I'd just do 1. now, and waste no more time with it, aka we don't need an OCSResponse you said, so no need to write internal magic code for it?
Well we use it in the middleware etc. But we can clean that up of course as well.
rullzer
No branches or pull requests
Currently we have the OCSResponse in OCP https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http/OCSResponse.php
However I question the use of this. Since people writing OCS code will use the OCSController which takes a DataResponse: https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http/OCSResponse.php
On top of that the first OCSResponse parameter is the format string https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Http/OCSResponse.php#L57 which is weird since it is the job of the AppFramework/Controller to set this properly. When I'm writing my endpoint I don't want to care. I just want to return data.
So what I propose:
Good/bad idea? Comments? @BernhardPosselt @LukasReschke @nickvergessen @MorrisJobke
The text was updated successfully, but these errors were encountered: