@wpkernel/wp-json-ast v0.12.6-beta.3
@wpkernel/wp-json-ast / ResourceControllerRouteMetadata
Interface: ResourceControllerRouteMetadata
Metadata for a resource controller route.
See
ResourceControllerMetadata
Properties
kind
ts
readonly kind: "list" | "get" | "create" | "update" | "remove" | "custom";The kind of route.
method
ts
readonly method: string;The HTTP method for the route.
path
ts
readonly path: string;The path for the route.
cacheSegments?
ts
readonly optional cacheSegments: readonly unknown[];Optional cache segments for the route.
tags?
ts
readonly optional tags: Readonly<Record<string, string>>;Optional tags for the route.
