0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-14 12:59:20 +00:00
nextcloud_server/build/integration/features/ocs-v1.feature
Andy Scherzinger 1e04619675
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-06 22:53:41 +02:00

26 lines
927 B
Gherkin

# SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
Feature: ocs
Background:
Given using api version "1"
Scenario: Default output is xml
Given user "user0" exists
And As an "user0"
When sending "GET" to "/cloud/config"
And the HTTP status code should be "200"
And the Content-Type should be "text/xml; charset=UTF-8"
Scenario: Get XML when requesting XML
Given user "user0" exists
And As an "user0"
When sending "GET" to "/cloud/config?format=xml"
And the HTTP status code should be "200"
And the Content-Type should be "text/xml; charset=UTF-8"
Scenario: Get JSON when requesting JSON
Given user "user0" exists
And As an "user0"
When sending "GET" to "/cloud/config?format=json"
And the HTTP status code should be "200"
And the Content-Type should be "application/json; charset=utf-8"