# PostaEndpoint Constructors

- Package: [CommunityToolkit.Aspire.Posta](/reference/api/csharp/communitytoolkit.aspire.posta.md)
- Type: [PostaEndpoint](/reference/api/csharp/communitytoolkit.aspire.posta/postaendpoint.md)
- Kind: `Constructors`
- Members: `1`

Describes a Posta API operation.

<a id="constructor"></a>
<a id="constructor-httpmethod-string-postaauthentication-bool-string"></a>

## PostaEndpoint(HttpMethod, string, PostaAuthentication, bool, string?)

- Name: `Constructor(HttpMethod, string, PostaAuthentication, bool, string?)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1/src/CommunityToolkit.Aspire.Posta/Endpoints/PostaEndpoint.cs#L9-L14)

Describes a Posta API operation.

```csharp
public record PostaEndpoint
{
    public PostaEndpoint(
        HttpMethod Method,
        string Path,
        PostaAuthentication Authentication,
        bool IsImplemented = true,
        string? Documentation = null)
    {
        // ...
    }
}
```

## Parameters

- `Method` (`HttpMethod`)
  The HTTP method.
- `Path` (`string`)
  The relative path template.
- `Authentication` ([PostaAuthentication](/reference/api/csharp/communitytoolkit.aspire.posta/postaauthentication.md))
  The authentication required by the operation.
- `IsImplemented` (`bool`) `optional`
  Whether the published OpenAPI contract is complete enough for the default transport.
- `Documentation` (`string?`) `optional`
  An optional implementation note.
