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

REST or OCS #12157

Open
dartcafe opened this issue Sep 2, 2024 · 3 comments
Open

REST or OCS #12157

dartcafe opened this issue Sep 2, 2024 · 3 comments

Comments

@dartcafe
Copy link
Contributor

dartcafe commented Sep 2, 2024

This is more a question than a suggestion.

Under https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/index.html the usage of OCS Interface seems to be recommended (see section 'PREFER to expose your APIs using OCS'), but when clicking through to https://docs.nextcloud.com/server/latest/developer_manual/basics/controllers.html#ocs it says REST APIs are recommended.

Either it is confusing or there is something I don't understand.

@provokateurin
Copy link
Member

OCS is what should be used. @christianlupus and me already noticed this some time ago, but forgot to fix it back then. OCS is not legacy and is the way every API in Nextcloud (except for other standard like e.g. WebDAV) should be implemented.

@christianlupus
Copy link
Contributor

I was planning to update the docs here. So, please ping me if you want to work on it or have any suggestions...

@christianlupus
Copy link
Contributor

I am working on #12264 to address this issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants