Annotation Interface ApiVersion


@Target(TYPE) @Retention(RUNTIME) public @interface ApiVersion
Annotation can be used for controllers. It allows restrict visibility of methods annotated with @RequestMapping only to selected version of commerce web services (e.g. v1 or v2).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns API version for which methods from controller should be registered (e.g.
  • Element Details

    • value

      String value
      Returns API version for which methods from controller should be registered (e.g. v1).