Camunda REST
??? warning “Experimental module”
**Experimental** module is fully working and tested, but does not guarantee a fully stabilized API and may undergo some minor changes before being fully ready.
undergo some minor changes before being fully operational.
Module to add REST API for Camunda 7 BPMN module
Dependency¶
Dependency build.gradle
:
Module:
Requires Camunda BPMN module to be added.
Configuration¶
Example of the complete configuration described in the CamundaRestConfig
class (example values or default values are specified):
camunda {
rest {
enabled = false //(1)!
path = "/engine-rest" //(2)!
port = 8081 //(3)!
shutdownWait = "100ms" //(4)!
telemetry {
logging {
enabled = false //(5)!
stacktrace = true //(6)!
}
metrics {
enabled = true //(7)!
slo = [ 1, 10, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 30000, 60000, 90000 ] //(8)!
}
tracing {
enabled = true //(9)!
}
}
}
}
- Enable/disable REST API
- Prefix path to REST API
- Port on which the REST API server will be started
- Maximum time to wait for the server to complete after receiving a floating termination signal
- Enables module logging (default is
false
) - Enables error stack logging (default is
true
) - Enables module metrics (default
true
) - Configures SLO for DistributionSummary metrics
- Enables module tracing (default is
true
)
camunda:
rest:
enabled: false #(1)!
path: "/engine-rest" #(2)!
port: 8081 #(3)!
shutdownWait: "100ms" #(4)!
telemetry:
logging:
enabled: false #(5)!
stacktrace: true #(6)!
metrics:
enabled: true #(7)!
slo: [ 1, 10, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 30000, 60000, 90000 ] #(8)!
tracing:
enabled: true #(9)!
- Enable/disable REST API
- Prefix path to REST API
- Port on which the REST API server will be started
- Maximum time to wait for the server to complete after receiving a floating termination signal
- Enables module logging (default is
false
) - Enables error stack logging (default is
true
) - Enables module metrics (default
true
) - Configures SLO for DistributionSummary metrics
- Enables module tracing (default is
true
)
Applications¶
You can register custom jakarta.ws.rs.core.Application
with resources for APIs (e.g. for other webapp) by providing them as components in a dependency container.