From 1323b2814038e2fd71a50a38da792b27d8e96349 Mon Sep 17 00:00:00 2001 From: dashaun Date: Fri, 15 Dec 2023 14:02:23 -0600 Subject: [PATCH] add docs, consumes --- README.md | 6 +++++- pom.xml | 5 +++++ .../java/com/javagrunt/listener/youtube/Application.java | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c0ebca7..b4ba83f 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -# com.javagrunt.listener.youtube \ No newline at end of file +# com.javagrunt.listener.youtube + +## Reference Documentation + +- [Subscribe to Push Notifications](https://developers.google.com/youtube/v3/guides/push_notifications) \ No newline at end of file diff --git a/pom.xml b/pom.xml index 10185e1..0c930b4 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,11 @@ loki-logback-appender 1.4.1 + + com.rometools + rome + 2.1.0 + org.springframework.boot spring-boot-starter-actuator diff --git a/src/main/java/com/javagrunt/listener/youtube/Application.java b/src/main/java/com/javagrunt/listener/youtube/Application.java index 3aec233..dc45ba4 100644 --- a/src/main/java/com/javagrunt/listener/youtube/Application.java +++ b/src/main/java/com/javagrunt/listener/youtube/Application.java @@ -20,7 +20,7 @@ class YouTubeController { Logger logger = LoggerFactory.getLogger(YouTubeController.class); - @PostMapping("/") + @PostMapping(value = "/", consumes = "application/atom+xml") String listen(@RequestBody String atomXml) { logger.info("Received: " + atomXml); return "OK";