# Class Extensions OptimaJet.Workflow.Api.Postgres.Extensions This class contains extensions for configuring Workflow Engine Api Data services for PostgreSQL. Namespace: [OptimaJet.Workflow.Api.Postgres](https://api.workflowengine.io/web-api-postgresql/OptimaJet.Workflow.Api.Postgres/) ```csharp public static class Extensions ``` ## Methods `public static IServiceCollection AddWorkflowApiPostgres(this IServiceCollection services)` Adds the Workflow Engine Api Data Persistence Provider services for PostgreSQL, enabling you to connect other Workflow Api services. ### Parameters | Name | Type | Description | | --- | --- | --- | | `services` | `IServiceCollection` | The [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection). | ### Returns | Type | Description | | --- | --- | | `IServiceCollection` | A [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection) that can be used to further configure services. |