Get rules (getrules)
List style guide rules, optionally filtered by rule ID.
Last updated
Was this helpful?
List style guide rules, optionally filtered by rule ID.
List style guide rules.
See HTTP API Overview.
cmd
string
Yes
style_guide
Command name.
action
string
Yes
getrules
Action name.
lang
string
No
Language scope to list rules for (example: en_US or en).
By default returns all rules from every language.
rule
string
No
One rule ID, or a comma-separated list of rule IDs. Filter is applied within the selected lang.
Without lang: lists rules in common.
Without rule: returns all rules for the selected lang, grouped by style guide.
With rule: returns only the matching rule(s) for the selected lang.
Multiple rule objects are returned.
See Response schema.
See Errors.
Last updated
Was this helpful?
Was this helpful?
{
"cmd": "style_guide",
"action": "getrules"
}{
"cmd": "style_guide",
"action": "getrules",
"lang": "en_US",
"rule": "STYLE_111,STYLE_222"
}
