February 2025 Release Notes
This month, we're excited to introduce server variables support for TypeScript and C#, OAuth authentication for PHP, and new OpenAPI specification generation guides. These updates provide greater flexibility, improve security integration, and help developers streamline API documentation.
New Releases this Month
- Server Variables for TypeScript and C#: Enables dynamic URL configurations by defining placeholders within server URLs, which are replaced at runtime.
- OAuth Support for PHP: Brings secure authentication options to PHP SDKs, extending OAuth support already available for TypeScript/JavaScript, Java/Kotlin, Python, C#, and Go.
- New OpenAPI Specification Generation Guides: Step-by-step instructions for generating OpenAPI specs directly from API projects, simplifying API documentation and SDK generation.
Server Variables for TypeScript and C#
Now available for TypeScript and C#, server variables help developers dynamically adjust URLs based on runtime conditions, making API interactions more adaptable. This feature allows developers to define placeholders within a server URL, replacing them with actual values at runtime, providing enhanced flexibility for API integrations and infrastructure configurations.
Key Features
- Define placeholders within API server URLs.
- Dynamically substitute values at runtime.
- Improve multi-tenant architecture support.
- Enhance API versioning capabilities.
Example
The following OpenAPI snippet shows an example of how to use server variables for API versioning:
"servers": {
"url": "https://subdomain.server.com/{version}",
"variables": {
"version": {
"default": "v1",
"description": "API version.",
"enum": {
"v1",
"v2",
"v3",
}
}
}
}
For detailed guide on how to use server variables access the liblab documentation on server variables.
OAuth Support for PHP
OAuth is a widely adopted authentication standard that allows users to securely access APIs without exposing credentials. Now available for PHP, this update introduces a streamlined and secure way to manage OAuth tokens, ensuring seamless authentication and authorization across API endpoints. By enabling centralized OAuth configuration, PHP developers can implement secure access control with minimal effort, enhancing both security and usability.
Key Features
- Configure OAuth once for all API endpoints, simplifying the authentication process across your application.
- Customize OAuth settings per endpoint to meet specific security needs.
- Enhance security with industry-standard authentication best practices.
To get started with OAuth for your PHP SDK, check out the Authentication Guide.
New OpenAPI Specification Generation Guides
Manually generating OpenAPI specs can be time-consuming. Our new framework-specific guides help developers automate OpenAPI spec generation directly from their API projects, making SDK generation with liblab even easier.
Stay tuned, more guides are coming soon.