Services

The services adapter facilitates integration with external HTTP, gRPC, GraphQL services as well as integration with secure API’s and support for Retry and CircuitBreak features.

The default setting for Retry, CircuitBreak.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
     "DevPrime_Services":{
        "Enable":"true",
        "Timeout":"10",
        "CircuitBreak":"45",
        "Retry":"3",
        "Connections":[
          {
            "Name": "Services1",
            "TokenUri": "your token uri",
            "ClientId": "your client id",
            "ClientSecret": "your client secret",
            "GrantType": "client_credentials"
          }
        ]
      }

Integration with a protected API

The “connections” parameter defines the settings of the credentials required to access an API protected for example by KeyCloak or Auth0.

"DevPrime_Services": {
   "Timeout": "10",
   "CircuitBreak": "45",
   "Retry": "3",
   "connections": [
   {
      "Timeout": "10",
      "name": "principal",
      "TokenUri": "Put yoor provicer url",
      "ClientId": "Put id",
      "ClientSecret": "Put password",
      "GrantType": "client_credentials",
      "Audience": "Audience"
   }
   ]
},
Last modified March 10, 2022 (615ec2b)