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

  Рет қаралды 16,220

Dev Problems

Dev Problems

Жыл бұрын

In this video, you will learn how to generate reactive & non-reactive server code using OpenAPI generator for Spring Boot.
Code: github.com/DevProblems/openap...
Other videos :
AWS Cognito | Authentication(Signup, Confirmsignup, Login and many more.) using AWS CLI • AWS Cognito | Authenti...
AWS Kinesis | Complete implementation of producer and consumer lambda model for AWS kinesis in java - • AWS Kinesis Data Strea...
Run and debug Java AWS Lambda locally using SAM CLI commands and Docker in IntelliJ Idea - • Run and debug Java AWS...
Deploy AWS Lambda source code to S3 bucket from IntelliJ IDEA | Invoke from Api gateway | Java - • Deploy AWS Lambda sour...
Contact details:
sarangkumar8056@gmail.com
sarangdevproblems@gmail.com
(+91)-8056232494

Пікірлер: 32
@roman_mf
@roman_mf Жыл бұрын
Great walkthrough, thanks for this video.
@anujsinghsomvanshi3385
@anujsinghsomvanshi3385 5 ай бұрын
Hi Sarang, This is really a great video. you explained it very well. Thanks buddy.😊
@ThomasRomanov
@ThomasRomanov Ай бұрын
Спасибо друг, долго не мог разобраться, теперь все понятно, удачи тебе во всем)
@arunmanglick
@arunmanglick 5 ай бұрын
Awesome details!!
@ibrahimiltifat7045
@ibrahimiltifat7045 Жыл бұрын
thank you !!
@vikashkumar-gv1dp
@vikashkumar-gv1dp Жыл бұрын
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?
@mithileshchandra2072
@mithileshchandra2072 5 күн бұрын
Nice job
@blackowl7009
@blackowl7009 8 ай бұрын
Great ! thanks
@devproblems
@devproblems 8 ай бұрын
Thanks for watching. And don't forget to subscribe :)
@LewisFlorezRenza
@LewisFlorezRenza Жыл бұрын
good video
@rjmilitante2787
@rjmilitante2787 Ай бұрын
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?
@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
@laserlock6491
@laserlock6491 4 ай бұрын
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 4 ай бұрын
DTO are generated. The entities need to be created manually.
@sharaddange_10
@sharaddange_10 Жыл бұрын
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 Жыл бұрын
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.
@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 11 ай бұрын
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
@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.
@hoanganhphan2553
@hoanganhphan2553 Жыл бұрын
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
@saikumardasari4220
@saikumardasari4220 Жыл бұрын
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'
@sayyapureddyvenkatesh2699
@sayyapureddyvenkatesh2699 7 ай бұрын
Good video and content but not audible clearly
@devproblems
@devproblems 7 ай бұрын
Sorry for the inconvenience. Hope you got the answers to your doubts by watching the video.
@sayyapureddyvenkatesh2699
@sayyapureddyvenkatesh2699 7 ай бұрын
@@devproblems Yes Thank You very much 🤝
@sanjaykarwa5448
@sanjaykarwa5448 Жыл бұрын
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 Жыл бұрын
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.
OpenAPI Specification ( Swagger ) Crash Course in Spring Boot
54:29
One O One Code
Рет қаралды 36 М.
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН
Дарю Самокат Скейтеру !
00:42
Vlad Samokatchik
Рет қаралды 8 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Spring boot 3 - OpenApi Documentation | Swagger UI
35:09
Bouali Ali
Рет қаралды 59 М.
OpenAPI и Swagger Editor - своё описание REST API с нуля
16:35
IT как Конструктор
Рет қаралды 79 М.
Building an API with OpenAPI YAML in 10 minutes. By Joshua Peper
21:58
pyGrunn and aiGrunn Conferences
Рет қаралды 2,5 М.
REST API and OpenAPI: It’s Not an Either/Or Question
9:17
IBM Technology
Рет қаралды 205 М.
Api-First driven development - Using swagger code gen, OpenApi & Spring Boot
17:35
Mike Teaches Programming
Рет қаралды 36 М.
Java Is Better Than Rust
42:14
ThePrimeTime
Рет қаралды 178 М.
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Daily Code Buffer
Рет қаралды 174 М.
#5 What is Spring Boot?
12:12
Telusko
Рет қаралды 42 М.
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,9 МЛН
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,3 МЛН
8 Товаров с Алиэкспресс, о которых ты мог и не знать!
49:47
РасПаковка ДваПаковка
Рет қаралды 151 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 62 МЛН