Get rules (getrules)
List style guide rules, optionally filtered by rule ID.
List style guide rules.
Request
See HTTP API Overview.
Parameters
cmd
string
Yes
style_guide
Command name.
action
string
Yes
getrules
Action name.
collection
string
Yes
A name of the collection in which rules are stored.
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.
Behavior
Without
lang: lists of all the rules under client id.Without
rule: returns all rules for the selectedlang, grouped by style guide.With
collection:returns all rules for selectedcollectionWith
rule: returns only the matching rule(s) for the selectedlang.
Response
Multiple rule objects are returned.
See Response schema.
Errors
See
Examples
1) Get all the rules:
2) Get all the rules of a specific collection:
3) Get a specific rule:
Was this helpful?

