You can imlement API Documentation in 4 easy steps
Add the below dependency in your Spring boot project in POM.xml file
| package com.dailycodebuffer.streamapi; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import java.util.*; | |
| import java.util.stream.Collectors; | |
| import java.util.stream.Stream; | |
| @SpringBootApplication |
| version: "3" | |
| services: | |
| zookeeper: | |
| image: 'bitnami/zookeeper:latest' | |
| container_name: zookeeper | |
| ports: | |
| - '2181:2181' | |
| environment: | |
| - ALLOW_ANONYMOUS_LOGIN=yes | |
| kafka: |