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

io.muserver.rest.Description Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
package io.muserver.rest;

import java.lang.annotation.*;

/**
 * Provides a description of a class, method, or parameter for use in documentation.
 */
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Description {

    /**
     * A short plaintext summary.
     * @return The summary
     */
    String value();

    /**
     * An optional, detailed description that may include CommonMark Markdown.
     * @return The description
     */
    String details() default "";

    /**
     * An optional URL pointing to more documentation for this.
     * @return The URL
     */
    String documentationUrl() default "";

    /**
     * An example value
     * @return An example value
     */
    String example() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy