Generating Client API and Defined with the OpenAPI

On the past week, I finished the OpenId server login last week and started a new work, which is generating the swagger API.

Mr. Peter added the log out to the server, and then the thing was quite easy, it’s almost like the log but just has two arguments, the issuer and the logout argument, so now the user can log in and log out to the system through the OpenId server.

After completing this task, the next goal is to convert the swagger API to Typescript. This was a new technology for me, and all I knew was that we could link the backend to the front end using the endpoint’s URL. Mr. Peter provided me with a link to the Swagger CodeGen library so that I could investigate it and integrate it into our system.

I found the instructions for that library to be a little hazy, so I started watching YouTube videos where YouTubers hardcoded the generation, and I did the same until Mr. Peter came along and showed me that I only needed to perform one command. Then there was the difficulty of the SSL certificate, where I needed to figure out how to include those certifications on the command. This technology isn’t widely used, so I couldn’t find much information about it. Eventually, I figured it out and generated the code.

Leave a Reply