Class Default
java.lang.Object
com.fredriksonsound.iot_backoffice_auth.endpoint.Default
@RestController
public class Default
extends java.lang.Object
Contains / mapping for checking if API is alive and what version.
-
Constructor Summary
Constructors Constructor Description Default() -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.String>index()Default endpoint
API doc:
Description: Returns the current API version as text
method: GET
Success response: "auth server v[API_VERSION]"
Error response: N/A
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
index
@CrossOrigin(origins="*", allowedHeaders="*") @RequestMapping(value="/", method=GET) public org.springframework.http.ResponseEntity<java.lang.String> index()Default endpoint
API doc:
Description: Returns the current API version as text
method: GET
Success response: "auth server v[API_VERSION]"
Error response: N/A- Returns:
- API version
-