OpenAPI Generator Demo for Spring Boot | Generate Web & WebFlux Server Code | Swagger UI

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

ความคิดเห็น • 34

  • @anujsinghsomvanshi3385
    @anujsinghsomvanshi3385 9 หลายเดือนก่อน +1

    Hi Sarang, This is really a great video. you explained it very well. Thanks buddy.😊

  • @ThomasRomanov
    @ThomasRomanov 6 หลายเดือนก่อน

    Спасибо друг, долго не мог разобраться, теперь все понятно, удачи тебе во всем)

  • @OlegPetrow-ze6ft
    @OlegPetrow-ze6ft 3 หลายเดือนก่อน

    Thank you so much, bro! It was very helpful!

  • @roman_mf
    @roman_mf ปีที่แล้ว

    Great walkthrough, thanks for this video.

  • @rjmilitante2787
    @rjmilitante2787 5 หลายเดือนก่อน

    Thank you this tutorial works great. I had a question. I’ve been trying to convert this code to using Gradel but it seems the Gradel version of the plug-in doesn’t support delegatepattern?

  • @laserlock6491
    @laserlock6491 8 หลายเดือนก่อน +1

    Do you store the DTO in the database or would you still manually create models and add the annotations for JPA entities? To use Hibernate.

    • @devproblems
      @devproblems  8 หลายเดือนก่อน

      DTO are generated. The entities need to be created manually.

  • @arunmanglick
    @arunmanglick 9 หลายเดือนก่อน

    Awesome details!!

  • @陈帅-x1j
    @陈帅-x1j 3 หลายเดือนก่อน

    How to handle with ResponseBodyAdvice interface when return unified response body? Instead of return UserDTO as video show, I'd like to return ResultDTO which contains a 'statusCode' and a 'data' fields

  • @vikashkumar-gv1dp
    @vikashkumar-gv1dp ปีที่แล้ว +1

    Bro What If I have very Huge UserDTO which contain multiple other Dtos also internally.
    How can I define that schema?
    And also is there any way so that we no need to define that schema rather I will give some path in $ref and takes schema definition from that external path?

  • @sharaddange_10
    @sharaddange_10 ปีที่แล้ว +1

    Hi, how can I add validation in yml file so when I build the project validation annotation will be added in generated dto class

    • @devproblems
      @devproblems  ปีที่แล้ว +1

      I showed in the video how you can add validation on fields like first name, last name and email. When the DTO is generated the @Valid annotation will be added to the field.

  • @vikashkumar-gv1dp
    @vikashkumar-gv1dp ปีที่แล้ว

    And also please explain more about plugins
    How can I modify the plugins so that I will be able to generate project based on my requirement.
    please explain use case of each tag in the plugin

  • @hoanganhphan2553
    @hoanganhphan2553 ปีที่แล้ว +1

    help, how can i do the same with gradle ??

    • @devproblems
      @devproblems  ปีที่แล้ว

      Follow these steps to convert maven build to gradle
      www.baeldung.com/maven-convert-to-gradle

  • @vietanhao507
    @vietanhao507 ปีที่แล้ว

    Please reply me, I'm have worked to 10:54 but Swagger-UI not found my API generated. Please support. Tks

    • @SureshKumar-xk7xh
      @SureshKumar-xk7xh ปีที่แล้ว

      The package that you have mentioned in apiPackage and modelPackage should be the same as your Spring Application package. Else add all required packages as basePackages for componentScan. Check if that resolves the problem

  • @mithileshchandra2072
    @mithileshchandra2072 4 หลายเดือนก่อน

    Nice job

  • @blackowl7009
    @blackowl7009 ปีที่แล้ว

    Great ! thanks

    • @devproblems
      @devproblems  ปีที่แล้ว

      Thanks for watching. And don't forget to subscribe :)

  • @adnanechahid9801
    @adnanechahid9801 ปีที่แล้ว

    swagger ui relay on v3/api-docs not on what u specied on the yaml file u created

    • @devproblems
      @devproblems  ปีที่แล้ว

      Yaml is for writing API definitions used by generator to generate code, it has nothing to do with swagger-ui.

  • @saikumardasari4220
    @saikumardasari4220 ปีที่แล้ว +1

    bro instead of writing by manually, try to implement it with stoplight with one video that's great

  • @cymu
    @cymu ปีที่แล้ว

    Issue: UserApiDelegate is not accessable from the userDelegateIml class

    • @cymu
      @cymu ปีที่แล้ว

      Please help

    • @devproblems
      @devproblems  ปีที่แล้ว

      If you can see the class in the target folder and it is not accessible when you import then refresh the project.

    • @cymu
      @cymu ปีที่แล้ว

      @@devproblems thank you for your response the issue was resolved, and now one request can you please make a video on 'AsyncAPI Generator through spring boot'

  • @ibrahimiltifat7045
    @ibrahimiltifat7045 ปีที่แล้ว

    thank you !!

  • @LewisFlorezRenza
    @LewisFlorezRenza ปีที่แล้ว

    good video

  • @sayyapureddyvenkatesh2699
    @sayyapureddyvenkatesh2699 ปีที่แล้ว

    Good video and content but not audible clearly

    • @devproblems
      @devproblems  11 หลายเดือนก่อน +1

      Sorry for the inconvenience. Hope you got the answers to your doubts by watching the video.

    • @sayyapureddyvenkatesh2699
      @sayyapureddyvenkatesh2699 11 หลายเดือนก่อน

      @@devproblems Yes Thank You very much 🤝

  • @sanjaykarwa5448
    @sanjaykarwa5448 ปีที่แล้ว +1

    Validation errors min and max lengths instead of logging those in backend console logs can we get those in swagger UI error response the actual validation errors? Example error like [nio-8080-exec-2] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public default org.springframework.http.ResponseEntity com.openapi.gen.springboot.api.UserApi.saveUser(com.openapi.gen.springboot.dto.UserDTO): [Field error in object 'userDTO' on field 'firstName': rejected value [sanjayadfsssssssssssssssssssadsfdafsdf]; codes [Size.userDTO.firstName,Size.firstName,Size.java.lang.String,Size]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [userDTO.firstName,firstName]; arguments []; default message [firstName],15,3]; default message [size must be between 3 and 15]] ]

    • @devproblems
      @devproblems  ปีที่แล้ว +1

      Hi Sanjay for getting the validation errors on swagger UI you have to create a controlleradvice class with a methods annotated with MethodArgumentNotValidation Exception in that method you can enhance your error or pass as it is to the UI like how I did for UserNotFoundException in the video.