List rules
Lists the rules in the style guide, the UX writing guide, and the slop guard, in guide order. Filter by guide, tier, check type, or whether the automated checks cover the rule. Use q to search ids, names, and rule text.
apiKeyAuthorizationBearer <API key>Send your API key as a bearer token: Authorization: Bearer <key>. Test keys start with wsk_test_. The mock server accepts any key, but it rejects a request with no Authorization header.
limit?integerThe most items to return in one page.
1 <= value <= 10025cursor?stringThe next_cursor from the previous page. Leave it out for the first page.
length <= 200guide?stringOnly rules from this guide.
"style-guide""ux-writing""slop-guard"tier?stringOnly rules of this tier.
"never""avoid""prefer"check?stringOnly rules of this check type.
"mechanical""judgment"automated?booleantrue for only the rules the automated checks cover, false for only the rules they don’t.
q?stringWords to look for in rule ids, names, and text. Every word must match.
1 <= length <= 200One page of rules.
application/json- response
data*array<>has_more*booleantrue if there is another page.
next_cursor*|Pass this as cursor to get the next page. null on the last page.
curl -X GET 'http://127.0.0.1:4010/v1/rules?q=semicolon'{ "data": [ { "id": "num-no-slash-dates", "name": "No slash dates", "guide": "style-guide", "section": "numbers-dates-and-units", "tier": "never", "check": "mechanical", "automated": true, "link": "https://watership.ca/style-guide/numbers-dates-and-units/#num-no-slash-dates" }, { "id": "link-descriptive-text", "name": "Descriptive link text", "guide": "style-guide", "section": "links-and-cross-references", "tier": "never", "check": "mechanical", "automated": true, "link": "https://watership.ca/style-guide/links-and-cross-references/#link-descriptive-text" } ], "has_more": true, "next_cursor": "cnVsZTpsaW5rLWRlc2NyaXB0aXZlLXRleHQ"}
