Class RootApi

java.lang.Object
fr.metabocloud.core.apis.RootApi

@CrossOrigin(origins="*", maxAge=3600L) @RestController public class RootApi extends Object
Controller for the root of the REST API "/" that handle when a request is sent on the root of the application.

It returns an informative message redirecting the user towards the OpenAPI documentation.

  • Constructor Details

    • RootApi

      protected RootApi()
      Protected constructor
  • Method Details

    • getRoot

      @GetMapping("/") public org.springframework.http.ResponseEntity<String> getRoot()
      Handle GET requests to the root `/` endpoint. It returns an informative message at the application root to redirect the user towards the OpenAPI documentation.
      Returns:
      The message with the link of the OpenAPI documentation.