Skip to content

Commit

Permalink
add docs, consumes
Browse files Browse the repository at this point in the history
  • Loading branch information
dashaun committed Dec 15, 2023
1 parent d86442a commit 1323b28
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# com.javagrunt.listener.youtube
# com.javagrunt.listener.youtube

## Reference Documentation

- [Subscribe to Push Notifications](https://developers.google.com/youtube/v3/guides/push_notifications)
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
<artifactId>loki-logback-appender</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>com.rometools</groupId>
<artifactId>rome</artifactId>
<version>2.1.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1323b28

Please sign in to comment.