This page describes the ‘/accounts/’ REST endpoints that are added by the @PLUGIN@ plugin.
Please also take note of the general information on the REST API.
GET /accounts/{account-id}/@PLUGIN@~preference
Gets the preferences of a user for the @PLUGIN@ plugin.
GET /accounts/self/@PLUGIN@~preference HTTP/1.0
As response a PreferenceInfo entity is returned that contains the preferences of a user for the @PLUGIN@ plugin.
HTTP/1.1 200 OK Content-Disposition: attachment Content-Type: application/json;charset=UTF-8 )]}' { "default_project": "All-Images", "link_decoration": "INLINE", "enable\_image_server": true }
PUT /accounts/{account-id}/@PLUGIN@~preference
Sets the configuration of the @PLUGIN@ plugin.
The new preferences must be specified as a PreferenceInfo entity in the request body. Not setting a parameter means that the parameter is unset and that the global setting for this parameter applies again.
PUT /accounts/self/@PLUGIN@~preference HTTP/1.0 Content-Type: application/json;charset=UTF-8 { "default_project": "All-Images" }
The PreferenceInfo
entity contains the configuration of the @PLUGIN@ plugin.
NONE
: no decoration, TOOLTIP
: the image is shown as tooltip on mouse over an image link, INLINE
: the image is inlined instead of the URL.Part of Gerrit Code Review