regula icon indicating copy to clipboard operation
regula copied to clipboard

Consult latest ruleset endpoint

Open asdine opened this issue 5 years ago • 2 comments

Endpoint: GET /i/rulesets/<path>

Expected payload :

{
    "path": "",
    "version": "",
    "signature": {
        "params": [
            {
                "<name>": "<type>"
            }
        ],
        "returnType": "<type>"
    },
    "versions": [
        "",
        ""
    ], // list of string representing all the existing versions of the ruleset
    "rules": [
        {
            "sExpr": "",
            "returnValue": "",
        }
    ]
}

Success

Response: 200

asdine avatar Nov 12 '18 14:11 asdine

I think that we need all the existing versions of the retrieved ruleset? Isn't it? For the versions dropdown list in the consult page cf https://github.com/heetch/regula/issues/32

yaziine avatar Nov 13 '18 13:11 yaziine

@YassineE Good catch! I've edited the message :+1:

asdine avatar Nov 13 '18 15:11 asdine