package com.example.poc.webmvc.api;

import com.example.poc.webmvc.dto.Records;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.http.ResponseEntity;
import org.springframework.web.util.UriComponentsBuilder;

@OpenAPIDefinition(tags = {
        @Tag(name = "Post API", description = "performs all CRUD operations for posts")
})
public interface PostAPI {

    @Operation(summary = "Creates post")
    @ApiResponses(
            value = {
                @ApiResponse(
                        responseCode = "201",
                        description = "Post Created",
                        content = {@Content(mediaType = "application/json")}),
                @ApiResponse(
                        responseCode = "419",
                        description = "Post with same title exists",
                        content = {@Content(mediaType = "application/json")})
            })
    @Tag(name = "Post API")
    ResponseEntity<Object> createPostByUserName(
            Records.PostRequestDTO postRequestDTO,
            @Parameter(description = "id of user who is creating") String userName,
            UriComponentsBuilder ucBuilder);
}

@@ -575,16 +575,8 @@
 ion(
-tags = %7B
 %0A   
@@ -576,24 +576,32 @@
 on(%0A        
+tags = %7B
 @Tag(name = 
@@ -667,17 +667,16 @@
  posts%22)
-%0A
 %7D)%0Apubli

fix code format issue