All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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