diff --git a/Api.md b/Api.md index 3d5e592..d16566a 100644 --- a/Api.md +++ b/Api.md @@ -986,3 +986,18 @@ Deletes the refresh token identified by {id}. The given {id} must point to a tok Returns an HTTP 200 on success. +## Data + +The data API is used for exporting and importing data to facilitate upgrades and server cloning. + +### GET /api/data + +*Requires __ROLE_ADMIN__ access.* + +Returns an `application/json` object representing the current running state of the server, including all tokens, authorizations, clients, scopes, whitelists, blacklists, and grants. The format and content of this varies depending on the API version. + +### POST /api/data + +*Requires __ROLE_ADMIN__ access.* + +Body contains an `application/json` object representing the state of the server to import, including all tokens, authorizations, clients, scopes, whitelists, blacklists, and grants. The format and content of this varies depending on the API version. Newer API versions will be able to import exports from older API versions, facilitating upgrades. \ No newline at end of file