---
jsApi: true
title: "[F] getRoutePath"

---
```ts
getRoutePath(program, entity): RoutePath | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `entity` | `Interface` \| `Namespace` \| `Operation` |

## Returns

[`RoutePath`](Interface.RoutePath.md) \| `undefined`
