Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Consult latest ruleset endpoint #33

Open
asdine opened this issue Nov 12, 2018 · 2 comments
Open

Consult latest ruleset endpoint #33

asdine opened this issue Nov 12, 2018 · 2 comments
Assignees
Milestone

Comments

@asdine
Copy link
Contributor

asdine commented Nov 12, 2018

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 asdine added this to the v0.6.0 milestone Nov 12, 2018
@yaziine
Copy link

yaziine commented Nov 13, 2018

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 #32

@asdine
Copy link
Contributor Author

asdine commented Nov 13, 2018

@Yassinee Good catch! I've edited the message 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants