Package com.azure.core.annotation
Annotation Type ExpectedResponses
-
@Retention(RUNTIME) @Target(METHOD) public @interface ExpectedResponses
Annotation to annotate list of HTTP status codes that are expected in response from a REST endpoint.Example:
@ExpectedResponses({200, 201}) @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft .CustomerInsights/hubs/{hubName}/images/getEntityTypeImageUploadUrl") void getUploadUrlForEntityType(@Path("resourceGroupName") String resourceGroupName, @Path("hubName") String hubName, @Path("subscriptionId") String subscriptionId, @Body GetImageUploadUrlInputInner parameters);
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int[]
value
The status code that will trigger that an error of type errorType should be returned.
-