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

io.swagger.v3.oas.annotations.Webhook Maven / Gradle / Ivy

There is a newer version: 2.2.25
Show newest version
package io.swagger.v3.oas.annotations;

import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.METHOD;

/**
 * The annotation may be used to define a method as an OpenAPI Webhook.
 *
 * @see Webhook (OpenAPI specification)
 * @see io.swagger.v3.oas.annotations.OpenAPIDefinition
 **/
@Target({METHOD, ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@OpenAPI31
public @interface Webhook {
    /**
     * Provides the name related to this webhook.
     * @return webhook name
     */
    String name();

    /**
     * Provides the operation related to this webhook.
     * @return webhook operation
     */
    Operation operation();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy