...
Code Block |
---|
GET - /data/config |
Parameters:
format | Optional querystring parameter. Specifies the output format.
|
---|
Response:
The response provides a list of tool IDs. Each tool ID can be used as a path parameter to retrieve specific config information about that tool.
...
Code Block |
---|
GET - /data/config/{tool-id} |
Parameters:
{tool-id} | Required path parameter – uses the same string as listed above in the listing of all config tools |
---|---|
format | Optional querystring parameter. Specifies the output format.
|
Response Code:
200 | A site-specific config exists for this tool |
---|---|
404 | A site-specific config has never been set for this tool |
Response Format:
The inner format of the response for each tool will follow a common structure, but the "contents" parameter may contain a simple string or a complex JSON object, depending on the tool.
Code Block |
---|
{ "ResultSet": { "Result": [ { "contents": "string", "create_date": "datetime", "path": "string", "reason": "string", "project": "string", "status": "string", "tool": "string", "unversioned": "boolean", "user": "string", "version": "integer" }, ... ] } } |
Response Parameter | |
---|---|
contents | The actual contents of the configuration file |
create_date | The date/time the configuration was created |
path | the path to the configuration file |
reason | The user provided reason for uploading the configuration |
status | Enumerated setting: "enabled" / "disabled" |
tool | The name of a tool that has configuration files |
unversioned | Whether or not this config object is "versioned."
|
user | The user who created the configuration |
version | version number of the configuration contents |
Store A
...
Site-
...
wide Config Value For A Specific Tool
Code Block |
---|
PUT - /data/config/{tool-id}/{file-path} |
Parameters
{tool-id} | Required path parameter – uses the "tool" string as listed above | ||
---|---|---|---|
{file-path} | Required path parameter – uses the "path" string as listed above | ||
inbody | Required querystring parameter
| ||
contents | Required body parameter.
|
Response: No response object is returned. A "201" response code indicates that the config value was stored.