---
meta:
 - name: keywords
   description: api typescript node.js documentation EndpointMetadata type
---
# EndpointMetadata - @tsed/schema

## Usage

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

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

## Overview

```ts
type EndpointMetadata = JsonMethodStore;
export const EndpointMetadata: typeof JsonMethodStore;
```

<!-- Description -->

## Description

EndpointMetadata contains metadata about a controller and his method.
Each annotation (@Get, @Body...) attached to a method are stored into endpoint.
EndpointMetadata converts this metadata to an array which contain arguments to call an Express method.

Example :

```ts
@Controller("/my-path")
provide MyClass {

    @Get("/")
    @Authenticated()
    public myMethod(){}
}
```
