#### [Abblix\.Oidc\.Server\.MinimalApi](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi 'index')
### [Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.Interfaces')

## IConfigurationResponseFormatter Interface

Formats the framework\-neutral OpenID Connect configuration metadata into an [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult'), enriching it
with the absolute endpoint URLs resolved for the current request\.

```csharp
public interface IConfigurationResponseFormatter
```

Derived  
↳ [ConfigurationResponseFormatter](https://www.abblix.com/en/docs/api/abblix-oidc-server-minimalapi/Abblix.Oidc.Server.MinimalApi.Formatters.ConfigurationResponseFormatter 'Abblix\.Oidc\.Server\.MinimalApi\.Formatters\.ConfigurationResponseFormatter')

### Remarks
This is the Minimal API counterpart of the MVC integration's `IConfigurationResponseFormatter`: same mapping
logic, but it returns an [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult') instead of an `ActionResult`, and it resolves endpoint URLs
from the configured route templates plus the request's base URL rather than from controller/action descriptors\.
### Methods

## IConfigurationResponseFormatter\.FormatResponseAsync\(ConfigurationResponse\) Method {#Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IConfigurationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse)}

Formats the configuration response, adding endpoint URLs and \(when enabled\) the RFC 8414 signed metadata\.

```csharp
System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.IResult> FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse response);
```
#### Parameters

###### `response` [ConfigurationResponse](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse 'Abblix\.Oidc\.Server\.Endpoints\.Configuration\.Interfaces\.ConfigurationResponse') {#Abblix.Oidc.Server.MinimalApi.Formatters.Interfaces.IConfigurationResponseFormatter.FormatResponseAsync(Abblix.Oidc.Server.Endpoints.Configuration.Interfaces.ConfigurationResponse).response}

The framework\-neutral configuration metadata produced by the core handler\.

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
An [Microsoft\.AspNetCore\.Http\.IResult](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.iresult 'Microsoft\.AspNetCore\.Http\.IResult') that writes the discovery document as JSON\.
