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
});
const rule = await client.rules.listRulesets('acme');
console.log(rule);
[
{
"uid": "UakgbKJ5m9gl0JDMbcJqL",
"title": "Acme API",
"description": "API for managing Acme products and orders.",
"slug": "acme-api",
"namespace": "acme",
"isPrivate": false
}
]