Packages (RBAC)
Packages (/packages) are named bundles of endpoint permissions tied to a product. Assigning a package to a subscription limits that subscription to only the endpoints included in the bundle.
The hierarchy
Product (has a spec) └── Package A (e.g. "Read-Only Tickets") └── GET /api/service/tickets └── GET /api/service/tickets/{id} └── Package B (e.g. "Ticket Manager") └── GET /api/service/tickets └── POST /api/service/tickets └── PUT /api/service/tickets/{id}
Subscription → [Package A] ← can only call GET endpointsSubscription → [Package B] ← can call GET + POST + PUTSubscription → [] ← unrestricted (all endpoints)A subscription can have multiple packages assigned. Access is the union of all assigned packages.
Package list view
The package list is a table with columns:
- Package Name — click to open the side drawer
- Product — which product this package belongs to
- Endpoints — method pills showing the mix of HTTP methods
- In Use — how many subscriptions have this package assigned
- Created — creation date
Side drawer
Click any row to open a quick-view drawer from the right showing:
- Endpoint count and subscriber count
- Description
- Endpoint permissions list (method + path)
- Assigned subscriptions list
- Edit Permissions and Delete buttons
Package detail view
Click Edit Permissions in the drawer (or the → chevron in the table) to open the full editor.
Endpoint picker
The endpoint picker loads all operations from the linked product’s OpenAPI spec, organized by tag in collapsible accordions. Each row shows:
[✓] [GET] /api/service/tickets/{id} Retrieve a ticket by IDClick any row to expand inline details from the spec:
- Description from the operation’s
descriptionfield - Parameters table (name, location, required, description)
- Request body schema (collapsible JSON)
- Response codes with colour-coded status badges
Filters
Three filter controls:
- Search — filter by path or description text
- Method — show only GET / POST / PUT / PATCH / DELETE
- State — show all / selected only / unselected only
Tag accordions
Operations are grouped by their first OpenAPI tag. Each tag group has:
- Select all checkbox for the whole group
- Count badge showing
n / totalselected in that group - Collapsible body listing all operations in the group
Method breakdown (right panel)
As you select endpoints, the method breakdown chart updates in real-time showing how many endpoints of each HTTP method are included.
Creating a package
- Click + New Package
- Enter a name and select the product
- Optionally add a description
- Click Create & Edit Permissions — jumps straight to the detail editor
- Select endpoints using the picker
- Click Save Package
Assigning to subscriptions
From the subscriptions page, open a subscription’s detail view and use the Package Access Control card to check/uncheck packages.
Alternatively, use the API:
PUT /api/subscriptions/:id/packages{ "packageIds": ["pkg_abc", "pkg_def"] }Gateway enforcement
When a subscription has packages assigned:
POST /api/gateway/validate{ "apiKey": "ltg_live_...", "method": "DELETE", "path": "/api/service/tickets/123"}If DELETE /api/service/tickets/{id} is not in any assigned package:
{ "valid": false, "error": "Endpoint not permitted by assigned packages", "assignedPackages": ["Read-Only Tickets"]}