@GetMapping(value = "/{id}", produces = VERSION_2, headers = { HEADER_2, HEADER_1 })
	@ResponseStatus(HttpStatus.OK)
	@Operation(operationId = "getSampleV2", description = "Get the sample by its id. This represents V2.")
	@ApiResponse(responseCode = "200", content = @Content(schema = @Schema(implementation = SampleV1.class)))
	public SampleV2 getSampleV2(@Parameter(description = "The sample's id", required = true)
	@PathVariable final Long id) {
		return new SampleV2(id);
	}
Gets sample v 2.

@param id the id
@return the sample v 2
springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/java/test/org/springdoc/api/v30/app134/HelloController.java