![JAR search and dependency download from the Maven repository](/logo.png)
org.camunda.feel.playground.api.VersionController Maven / Gradle / Ivy
package org.camunda.feel.playground.api;
import org.camunda.feel.FeelEngine;
import org.camunda.feel.playground.dto.VersionResponse;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/api/v1/version")
@CrossOrigin()
public class VersionController {
private static final String feelEngineVersion =
FeelEngine.class.getPackage().getImplementationVersion();
@GetMapping
public ResponseEntity getVersion() {
return new ResponseEntity<>(VersionResponse.withVersion(feelEngineVersion), HttpStatus.OK);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy