public static void checkApiKey(NativeWebRequest req) {
		if (!"1".equals(System.getenv("DISABLE_API_KEY")) && !"special-key".equals(req.getHeader("api_key"))) {
			throw new ResponseStatusException(HttpStatus.UNAUTHORIZED, "Missing API key!");
		}
	}
Check api key.

@param req the req
springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/java/test/org/springdoc/api/v30/app105/api/ApiUtil.java