> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# RestierRouteBuilder

> A fluent configuration helper that maps [ApiBase](/restier/api-reference/Microsoft/Restier/Core/ApiBase) instances to ASP.NET OData routes.

## Definition

**Assembly:** Microsoft.Restier.Core.dll

**Namespace:** Microsoft.Restier.Core

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.Core.RestierRouteBuilder
```

## Summary

A fluent configuration helper that maps [ApiBase](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/ApiBase.md) instances to ASP.NET OData routes.

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={"dark"}
public RestierRouteBuilder()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MapApiRoute

Maps the specified Restier API to an ASP.NET OData Route.

#### Syntax

```csharp theme={"dark"}
public Microsoft.Restier.Core.RestierRouteBuilder MapApiRoute<TApi>(string routeName, string routePrefix, bool allowBatching = true) where TApi : Microsoft.Restier.Core.ApiBase
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `routeName` | `string` | The name of the Route. Used to map the Route to a specific OData per-route container. Defaults to 'RestierDefault'. |
| `routePrefix` | `string` | A string |
| `allowBatching` | `bool` | A boolean specifying if the RestierBatchHandler will be mapped to the '\$batch' route. |

#### Returns

Type: `Microsoft.Restier.Core.RestierRouteBuilder`
The [RestierRouteBuilder](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/RestierRouteBuilder.md) instance to allow for fluent method chaining.

#### Type Parameters

* `TApi` -

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.