ocs-v1.feature 927 B

1234567891011121314151617181920212223242526
  1. # SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  2. # SPDX-License-Identifier: AGPL-3.0-or-later
  3. Feature: ocs
  4. Background:
  5. Given using api version "1"
  6. Scenario: Default output is xml
  7. Given user "user0" exists
  8. And As an "user0"
  9. When sending "GET" to "/cloud/config"
  10. And the HTTP status code should be "200"
  11. And the Content-Type should be "text/xml; charset=UTF-8"
  12. Scenario: Get XML when requesting XML
  13. Given user "user0" exists
  14. And As an "user0"
  15. When sending "GET" to "/cloud/config?format=xml"
  16. And the HTTP status code should be "200"
  17. And the Content-Type should be "text/xml; charset=UTF-8"
  18. Scenario: Get JSON when requesting JSON
  19. Given user "user0" exists
  20. And As an "user0"
  21. When sending "GET" to "/cloud/config?format=json"
  22. And the HTTP status code should be "200"
  23. And the Content-Type should be "application/json; charset=utf-8"