Generate OpenApi (Swagger) Angular client API library & stop maintaining APIs in your Angular app!

  Рет қаралды 18,125

Techtacious

Techtacious

2 жыл бұрын

Learn how to leverage the power of OpenApi Codegen to generate Angular client API library and how to use that library in your Angular app.
Stop wasting hours in maintaining API code in the Angular app and dealing with object mappings and bug-prone development.
This video focuses on Angular client but there are dozens of languages/frameworks that OpenApi Codegen supports.
Please Like this video and Subscribe to my channel in order to support me in creating more tutorials like this.
Please feel free to comment on the video if you have any questions, or if you'd like me to do a tutorial on anything.
Helpful Links:
Swagger / OpenApi Docs: swagger.io/docs/specification...
OpenApi CodeGen setup: github.com/OpenAPITools/opena...
GitHub Repo: github.com/techtacious/market... (Branch: tutorial-openapi)
Nx (Nrwl) : nx.dev/l/a/getting-started/intro

Пікірлер: 33
@expansiondigital
@expansiondigital 2 жыл бұрын
Excellent explanation, there is almost nothing explaining openapi and Angular. Thanks for your contribution.
@techtacious
@techtacious 2 жыл бұрын
I'm glad I could help. :) Please feel free to post suggestions for topics you'd like to see on this channel. Happy coding!
@sudharsanreddy8631
@sudharsanreddy8631 2 жыл бұрын
This is amazing tutorial to start with openapi client in angular, thanks :)
@techtacious
@techtacious 2 жыл бұрын
I'm glad I could help. :)
@user-vq7lv3bn6z
@user-vq7lv3bn6z Ай бұрын
thanks for your contribute very much
@techtacious
@techtacious Ай бұрын
No problem. Thanks for watching!
@mahboubehmaleklou4083
@mahboubehmaleklou4083 9 ай бұрын
thank you for this video , i suscribed you for future tutorial ... good luck
@techtacious
@techtacious 9 ай бұрын
Thank you!
@ebichu8126
@ebichu8126 2 жыл бұрын
Thanks a lot!
@techtacious
@techtacious 2 жыл бұрын
Glad I could help!
@robertkameni5975
@robertkameni5975 7 ай бұрын
Great Video✌
@techtacious
@techtacious 7 ай бұрын
Thank you and thanks for watching!
@kartikkanwar91
@kartikkanwar91 2 жыл бұрын
awesome!
@techtacious
@techtacious 2 жыл бұрын
I'm glad I could help. :) Please feel free to post suggestions for topics you'd like to see on this channel. Happy coding!
@tijanimiracle90
@tijanimiracle90 Жыл бұрын
god will bless you this really help me alot today
@techtacious
@techtacious Жыл бұрын
I'm glad I was able to help. Happy coding! 🙂
@gavarniwinter6045
@gavarniwinter6045 Жыл бұрын
Hands down best video on this subject all these other videos of annoying nerds posting things we not interested in i dont wanna install 1000 other dependencies / tools for a code gen.
@techtacious
@techtacious Жыл бұрын
Thanks a lot! I'm glad you found it useful.
@sickboy1776
@sickboy1776 Жыл бұрын
Great tutorial, thank you for your effort. I have a question about implementing micro services backend architecture, how do you implement and generate multiple swagger spec jsons when you a separate swagger for each of them?
@techtacious
@techtacious Жыл бұрын
Thank you! I recommend using Nx to maintain a monorepo. Every microservice can have its own swagger spec file. The file can either live somewhere in the microservice directory itself, or you can have a separate folder in the monorepo and call it swagger, and place all spec files there. You can then leverage Nx to have a command in your microservice's workspace.json, that would generate the swagger library using the respective microservice swagger spec file. The command would basically call a script that would find the associated swagger spec file for the microservice (have a naming convention) and run the respective codegen command to generate the client library for the microservice.
@sickboy1776
@sickboy1776 Жыл бұрын
@@techtacious This was what i was looking for... Thanks!
@ellen9427
@ellen9427 Жыл бұрын
hello, I want to use the open API, but my project is in QT, if I just use the .yaml file in my project without the settings you made in libs/openapi will it work? or it only works with settings made in libs/openapi??????? URGENT
@techtacious
@techtacious Жыл бұрын
Ideally it should work but you may need some configurational settings specific to QT. I havent really worked with QT so I can't be sure.
@nvelchev
@nvelchev 9 ай бұрын
Hi Sahaj, Great video! Thanks for sharing it. I have a question. What if I have more than one client? In a microservice project, we have different clients for the different microservices. I see that the instance of the ConfigurationParams is coming from a specific client that you built. How I can pass the same configuration to all clients instead of repeating the same code N times using the objects from each client?
@manasipalkar9794
@manasipalkar9794 3 ай бұрын
I m trying to see if I can generate the angular code from swagger without dropping sonar cube analysis
@techtacious
@techtacious Ай бұрын
I'm not sure why you would need to drop sonarcube analysis. The analysis should work on any code.
@MobiFarmer
@MobiFarmer 2 жыл бұрын
best
@techtacious
@techtacious 2 жыл бұрын
I'm glad I could help. :) Please feel free to post suggestions for topics you'd like to see on this channel. Happy coding!
@firecape8822
@firecape8822 Жыл бұрын
Thank you...really appreciate it. How would I have my .NET core api generate a yaml file from an API I already have?
@techtacious
@techtacious Жыл бұрын
No worries, thanks for watching! I have never worked with .NET but I'm sure there would be documentation regarding this on Openapi / Swagger's website.
@shahidullah2775
@shahidullah2775 11 ай бұрын
Error: 'java' is not recognized as an internal or external command
@hadirahmani7943
@hadirahmani7943 2 жыл бұрын
please increase font size in your screen :(
@techtacious
@techtacious 2 жыл бұрын
Hi Hadi! Apologies for the small font size. I am aware of the problem and I will take care of it in my future videos. Thanks for your comment!
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,2 МЛН
Khó thế mà cũng làm được || How did the police do that? #shorts
01:00
1❤️
00:17
Nonomen ノノメン
Рет қаралды 13 МЛН
REST API and OpenAPI: It’s Not an Either/Or Question
9:17
IBM Technology
Рет қаралды 203 М.
OpenAPI with Spring & Angular
50:40
Rainer Hahnekamp
Рет қаралды 1,6 М.
I Never Want to Create APIs Any Other Way
17:32
Marius Espejo
Рет қаралды 21 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 614 М.
OpenAPI & .NET: You're Doing It Wrong - Mark Rendle - NDC London 2023
1:01:08
How to Generate C# Http Client in NSwag Swagger codegen Swashbuckle
14:17
Build a .NET SDK with OpenAPI and NSwag | .NET Conf 2022
25:27
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2 МЛН
Как слушать музыку с помощью чека?
0:36