Skip to content

Add Accept header to curl example in ocs-api-overview.rst#13850

Merged
skjnldsv merged 2 commits intonextcloud:masterfrom
sunetfreitag:patch-1
Apr 29, 2026
Merged

Add Accept header to curl example in ocs-api-overview.rst#13850
skjnldsv merged 2 commits intonextcloud:masterfrom
sunetfreitag:patch-1

Conversation

@sunetfreitag
Copy link
Copy Markdown
Contributor

The return type of ocs calls can easily be changed by adding an Accept header to the request. Since some ocs calls return xml as their default, while others return json, it might be beneficial to the reader to state this early in the documentation.

@github-actions
Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Copy link
Copy Markdown
Contributor

@tflidd tflidd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, might be helpful if people prefer json. Github marks a typo, can you fix this?

Comment thread developer_manual/client_apis/OCS/ocs-api-overview.rst Outdated
sunetfreitag and others added 2 commits April 29, 2026 08:35
The return type of ocs calls can easily be changed by adding an Accept header to the request. Since some ocs calls return xml as their default, while others return json, it might be beneficial to the reader to state this early in the documentation.

Signed-off-by: sunetfreitag <71124321+sunetfreitag@users.noreply.github.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv enabled auto-merge April 29, 2026 06:35
@skjnldsv skjnldsv merged commit 0522bce into nextcloud:master Apr 29, 2026
27 of 34 checks passed
@welcome
Copy link
Copy Markdown

welcome Bot commented Apr 29, 2026

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/documentation/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants