Getting Started
The Babel Licensing Service API, is a key component of Babel Licensing that supports the Web API protocol to enhance compatibility with applications that requires a REST API interface access.
Last updated
The Babel Licensing Service API, is a key component of Babel Licensing that supports the Web API protocol to enhance compatibility with applications that requires a REST API interface access.
Last updated
The Web API protocol allows browser applications to directly communicate with gRPC services using HTTP/1.1. To configure this feature, you need to update the Babel Licensing Service endpoint in the appsettings.json
file to support both HTTP/1.1 and HTTP/2 protocols and enable as explained in the Babel Licensing online documentation.
After configuring the Babel Licensing Service to accept HTTP/1.1 connections, verify in the appsettings.json
file that the 'EnableWebApi' setting is activated. This ensures that the Babel Licensing Service API is operational and accessible.
The configuration settings for the Babel Licensing Service that are designed to control Web API for functionality and security can be found in the Application section:
"EnableWebApi": true
- This activates the Web API functionality.
"ApiKeyHeaderName": "x-api-key"
- Defines the name of the header to be used for API key authentication.
"ApiKeyCacheDuration": "00:05:00"
- Sets the duration for caching the API key, formatted as hours:minutes:seconds.
"EnableSwagger": true
- Enables Swagger, a tool for documenting APIs, making it easier to understand and test the API.
"SwaggerRoutePrefix": "swagger"
- Sets the URL prefix for accessing the Swagger UI.
"SwaggerEndpointUrl": "/swagger/v1/swagger.json"
- Specifies the endpoint URL for the Swagger JSON file, which contains the API's documentation.
The access to the Babel Licensing Service API can be facilitated through the Swagger UI.