List all rules
List all rulesets in a namespace.
Path Parameters
- Type: stringnamespacerequired
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/v1/rulesets/{namespace}
import Scalar from "@scalar/sdk";
const client = new Scalar({
bearerAuth: process.env["BEARER_AUTH"], // defaults to the BEARER_AUTH env var
environment: "production",
});
const listRulesets = await client.rules.listRulesets("namespace");
console.log(listRulesets);
[
{
"uid": "string",
"title": "",
"description": "",
"slug": "string",
"namespace": "string",
"isPrivate": false
}
]