RichTextToConfluenceWiki
This method can be used for the following functionality: Convert data from rich-text to Confluence Wiki markup.
Parameters
The following URL, Headers and Parameters are required for requests to this API endpoint. Where a parameter is optional, it will be indicated. Otherwise treat all parameters as mandatory.
Headers
POST /api/ss/utils/richtext-to-confluence-wiki HTTP/1.1
Host: demo.attackforge.com
X-SSAPI-KEY: APIKey
Content-Type: application/json
Connection: closeBody
custom_key (string)
A user-supplied custom key with a rich-text string supplied as the value. Multiple custom key/value pairs can be included within the object.
Example:
{
"vuln_recommendation": "<h1>Validation rules:</h1><p>Proper validation, file type restrictions, size limits, and permission controls are essential to mitigate this vulnerability.</p><p>At this time the only check of file validity seems to be if it ends in '.jpg' (or other image type) and this is easy for an attacker to bypass.</p><p>Here are some examples of other validation checks that could be used...</p>"
}Example
The following example is a cURL request to convert a custom value from rich-text to Confluence Wiki markup.
Request
Include API Token instead of stars in 'X-SSAPI-KEY: ***************************************' parameter.
Response
Response contains a Confluence Wiki markup object.
Last updated