wildduck/apidoc/api_data.js

2 lines
10 KiB
JavaScript
Raw Normal View History

2017-11-24 01:27:06 +08:00
define({ "api": [ { "type": "get", "url": "/users/:id", "title": "Request User information", "name": "GetUser", "group": "Users", "header": { "fields": { "Header": [ { "group": "Header", "type": "String", "optional": false, "field": "X-Access-Token", "description": "<p>Optional access token if authentication is enabled</p>" } ] }, "examples": [ { "title": "Header-Example:", "content": "{\n \"X-Access-Token\": \"59fc66a03e54454869460e45\"\n}", "type": "json" } ] }, "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "Number", "optional": false, "field": "id", "description": "<p>Users unique ID.</p>" } ] } }, "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Boolean", "optional": false, "field": "success", "description": "<p>Indicates successful response</p>" }, { "group": "Success 200", "type": "String", "optional": false, "field": "id", "description": "<p>Users unique ID (24 byte hex)</p>" }, { "group": "Success 200", "type": "String", "optional": false, "field": "username", "description": "<p>Username of the User</p>" }, { "group": "Success 200", "type": "String", "optional": false, "field": "name", "description": "<p>Name of the User</p>" }, { "group": "Success 200", "type": "String", "optional": false, "field": "address", "description": "<p>Main email address of the User</p>" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "retention", "description": "<p>Default retention time in ms. <code>false</code> if not enabled</p>" }, { "group": "Success 200", "type": "String[]", "optional": false, "field": "enabled2fa", "description": "<p>List of enabled 2FA methods</p>" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "encryptMessages", "description": "<p>If <code>true</code> then received messages are encrypted</p>" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "encryptForwarded", "description": "<p>If <code>true</code> then forwarded messages are encrypted</p>" }, { "group": "Success 200", "type": "String", "optional": false, "field": "pubKey", "description": "<p>Public PGP key for the User that is used for encryption</p>" }, { "group": "Success 200", "type": "Object[]", "optional": false, "field": "keyInfo", "description": "<p>Information about public key or <code>false</code> if key is not available</p>" }, { "group": "Success 200", "type": "String", "optional": false, "field": "keyInfo.name", "description": "<p>Name listed in public key</p>" }, { "group": "Success 200", "type": "String", "optional": false, "field": "keyInfo.address", "description": "<p>E-mail address listed in public key</p>" }, { "group": "Success 200",