---
url: /api/specs/schema/types/domain/class-json-method-path.md
description: api documentation of JsonMethodPath from @tsed/schema
---

## Usage

```typescript
import { JsonMethodPath } from "@tsed/schema";
```

> See [/packages/specs/schema/src/domain/JsonOperation.ts](https://github.com/tsedio/tsed/blob/v8.38.7/packages/specs/schema/src/domain/JsonOperation.ts#L0-L0).

## 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;
```
