You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Application Properties for registering on Consul (and be exposed on CAPI)
spring:
application:
name: sample-servicecloud:
consul:
enabled: trueport: 8500host: http://localhostdiscovery:
instance-id: ${info.app.environment}-${host}-${server.port}instance-group: ${info.app.environment}scheme: httphostname: localhostport: 8082tags: Category=, Owner=metadata:
group: dev# Your Open API Definition Endpointopen-api: http://${host}:${server.port}/v3/api-docs/sample-services# If you want CAPI to globally protect your API set secured to `true`# If `false` CAPI will honor the security defined in the Open API definitionsecured: false# If you want CAPI to check a REGO policy on OPA you can define here the REGO name.opa-rego: capi/smk_api/dev#allowed-origins: http://localhost, http://xpto.com#ingress: #schema: https#keep-group: #subscription-group: #throttle-max-calls: 5#throttle-period-in-seconds: 10#throttle-break: true
Use Open API 3 to define the authorization to your service.