How to create documentation for Rest API using springdoc-openapi

Publié le: 03 avril 2022
sur la chaîne: Programming Tutorial
1,490
like

#CreateDocumentationForRest #documentationopen-api #open-apispringboot
You can download about this tutorial in my github (https://github.com/AminTurmudiYusup/n...)
How to create documentation for Rest API
Prerequisite
1. You have api which build using springboot
2. API already import to intellij IDEA
3. You have connection internet for download springdoc-openapi


Let's jump right in
1. add springdoc-openapi to pom.xml
2. reload project, for download openapi from maven central to your maven local
3. Setting up springdoc-openapi, add this in the appliaction.properties = springdoc.api-docs.path=/api-docs
3. to see documentation in swagger ui add this in the application.properties = springdoc.swagger-ui.path=/swagger-ui-custom.html
4. add some description to our api (open your controller)
5. run your api

Finish, happy learning and happy sharing !!!



Success, happy learning and happy sharing!!!


Sur cette page du site, vous pouvez voir la vidéo en ligne How to create documentation for Rest API using springdoc-openapi durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Programming Tutorial 03 avril 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,490 fois et il a aimé like téléspectateurs. Bon visionnage!