Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #408709

    Currently we are using the visual editor to create most pages and it is great.

    However for our API pages we would like to be able to use markdown.

    For example:
    ____________________________________________________

    h1. Properties QUERY

    POST /api/v1/properties
    

    |*Name*|*Required*|*Default Value*|*Description*|*Values*|*Example*|
    | entity | yes| – | an entity name, such as server name, or a entity name pattern with ? and * wildcards | user defined (case insensitive) | “nurswgvml007” |
    | startTime | no| endTime – 1 hour | start of the selection interval. | Unix milliseconds | 1423130001000 |
    | endTime | no | current server time | end of the selection interval. | Unix milliseconds | 1423130003000 |
    | limit | no | 0 | maximum number of data samples returned. | | 10 |
    | type | yes | – | type of data properties | | |
    | last | no | false | Performs GET instead of scan. Retrieves only 1 most recent value. “See below”:https://nur.axibase.com:41791/redmine/projects/atsd/wiki/Series_QUERY#last | boolean | true |
    | keys | no | – | object containing key values that uniquely identify the property record | | “id”: “dm-0” |
    | values | no | – | arbitrary fields stored in the property record | | |

    Request Example:

    <code class="json">
    {
        "queries": [
            { 
             "startTime": 1423155300000,
             "endTime": 1423155302000,
             "last": true,
             "limit": 10,
             "type": "manager", 
             "entity": "host", 
             "keys":{"key1": "value1", "key2": ""}, 
             "values": ["name1", "name2"]
            },
            {
                "type": "manager2",
                "entity": "host2",
                "keyExpression": "key3 like 'nur*'"
            }
        ]
    }
    

    *Sample Request: properties for type = system without keys:*
    _______________________________________________________

    Is it possible to enable this? Is the a plugin that can do this? It would save us a lot of time as we could then copy paste our internal markdown code directly onto our API pages.

    #409063

    Hi heinrichvk!

    That would take a lot of time and code to implement so it would have to be considered custom work. Unfortunately I do not know of any plugins that do this but if anyone has an idea then please share.

    Cheers!
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.