Class ApiVersion


  • public class ApiVersion
    extends java.lang.Object
    The Azure Devops API is a horrible mess concerning the API versions it requires. Every REST call *must* specify an API version, and the versions are not compatible in any way (neither downward- nor upward-compatible). Effectively, each REST endpoint only works with a subset of the API versions, so the "version", in a sense, becomes part of the URL. To add insult to injury, *all* of the supported versions are permanently called "preview" versions -- in fact, there is no stable non-preview API. This is the reason why the ApiVersion is a mandatory and integral component of the RequestSpecification.
    • Field Detail

      • versionString

        public final java.lang.String versionString
      • _6_0_PREVIEW_1

        public static final ApiVersion _6_0_PREVIEW_1
      • _6_0_PREVIEW_2

        public static final ApiVersion _6_0_PREVIEW_2
      • _6_1_PREVIEW_2

        public static final ApiVersion _6_1_PREVIEW_2
      • _6_1_PREVIEW_3

        public static final ApiVersion _6_1_PREVIEW_3
      • _6_1_PREVIEW_6

        public static final ApiVersion _6_1_PREVIEW_6
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object