JsonMethodPath
@tsed/schema
Usage
typescript
import { JsonMethodPath } from "@tsed/schema";Overview
ts
class JsonMethodPath extends JsonMap<any> {
method: string;
path: string | RegExp;
constructor(method: string, path: string | RegExp);
summary(summary: string): this;
description(description: string): this;
}Description
Represents an HTTP operation path with metadata for OpenAPI specifications.
This class associates an HTTP method and path with operation-level metadata such as summary and description. It's used internally to manage routing information for API endpoints.
method
ts
method: string;path
ts
path: string | RegExp;summary
ts
summary(summary: string): this;description
ts
description(description: string): this;