From 2ab72bdf1c198c4d1e9c28495a635bbee966a6a5 Mon Sep 17 00:00:00 2001 From: jricher Date: Wed, 8 Oct 2014 20:16:05 -0700 Subject: [PATCH] Updated Api (markdown) --- Api.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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