InfoMessages.java
package fr.metabocloud.core.model;
/**
* Object used to store informative messages that may be returned by the
* application.
*
* @author Faustine Souc
* @since 1.0.0
* @version 1.0.0
*/
public enum InfoMessages {
/**
* Message sent at the root of the REST API
*/
ROOT("You are at the root of the REST API. Please refer to the Swagger documentation for available endpoints. "
+ "You can find it on the endpoint : '/api/swagger-ui/index.html'");
/**
* The message label.
*/
public final String label;
/**
* Default class constructor - initialize message with a label.
*
* @param label The label corresponding to the informative message
*/
InfoMessages(final String label) {
this.label = label;
}
}