# ApiDocumentationHandler.ShouldCreateApiEndpoint

Kind: Method  
Namespace: `Sisk.Documenting`  
Assembly: `Sisk.Documenting.dll`  
Source: https://docs.sisk-framework.org/api/Sisk.Documenting.ApiDocumentationHandler.ShouldCreateApiEndpoint.html

## ShouldCreateApiEndpoint(ApiEndpoint, Route) {#Sisk_Documenting_ApiDocumentationHandler_ShouldCreateApiEndpoint_Sisk_Documenting_ApiEndpoint_Sisk_Core_Routing_Route_}

Determines whether the generated documentation endpoint should be included.

```csharp
public virtual bool ShouldCreateApiEndpoint(ApiEndpoint endpoint, Route route)
```

### Parameters

`endpoint` [ApiEndpoint](https://docs.sisk-framework.org/api/Sisk.Documenting.ApiEndpoint.md)

The fully populated endpoint documentation item.

`route` Route

The route that produced the endpoint documentation item.

### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

[`true`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) to include the endpoint; otherwise, [`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).
