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

com.litongjava.annotation.Put Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.litongjava.annotation;

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

@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface Put {

  /**
   * Specifies the request path for PUT requests.
   * Example: "/users/{id}"
   * 
   * @return the path as a String
   */
  String value() default "";

  /**
   * Specifies a forward path for PUT requests.
   * Note: Variables like "/user/{id}" are not allowed.
   * 
   * @return the forward path as a String
   */
  String forward() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy