Implementing OwnCloud API v1: API level #47

Closed
opened 7 years ago by jking · 0 comments
jking commented 7 years ago
Owner

This is only documented in the v2 API draft, but is also exposed by the current v1 implementation.

API Level

To find out which API levels are supported, make a request to the following route:

The following response is being returned:

Status codes:

  • 200: The supported API levels can be parsed from the response
  • 404: The user is either running a version prior to 8.8.0 or the News app is disabled or not installed.

In case of an HTTP 200, the supported API levels are returned as JSON, e.g.:

{
    "apiLevels": ["v1-2", "v2"]
}

apiLevels: An array of arbitrary long strings, strings represent the the supported api levels which directly correspond to the first fragment after the /api/ Url fragment.

This is only documented in the v2 API draft, but is also exposed by the current v1 implementation. ## API Level To find out which API levels are supported, make a request to the following route: * **Method**: GET * **Route**: https://yourowncloud.com/index.php/apps/news/api * **Authentication**: none The following response is being returned: Status codes: * **200**: The supported API levels can be parsed from the response * **404**: The user is either running a version prior to **8.8.0** or the News app is disabled or not installed. In case of an HTTP 200, the supported API levels are returned as JSON, e.g.: ```json { "apiLevels": ["v1-2", "v2"] } ``` **apiLevels**: An array of arbitrary long strings, strings represent the the supported api levels which directly correspond to the first fragment after the **/api/** Url fragment.
jking closed this issue 7 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

0000-12-31

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.