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

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

## Parameters

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

## Returns

[`RoutePath`](../interfaces/RoutePath.md) \| `undefined`
