Загрузка страницы

Spring Boot - with Swagger UI | Simple Programming

Hi Guys, Welcome to Simple Programming
This is going to be a two part video series where we will see how to configure swagger UI and then we will see how to generate client class(using swagger codegen maven plugin) in spring boot dynamically using a json/yaml file
###Update###
There is an issue in the fetch/all json generation
please use this to fix the same
its not deserialized when the response is List of Employees
we can fix it in two ways
1. from the previous swagger ui example - update the @APIResponse like below
@ApiResponse(code = 200, message = "SUCCESS", response = Employee.class, responseContainer = "List")
and generate the json file and use this json for codegen into resources folder
(or)
2. directly edit the .json file in the resource folder like below (ideally this gets generated from the above)
"summary": "Fetch All Employees",
"operationId": "fetchAllEmployeesUsingGET",
"produces": [
"*/*"
],
"responses": {
"200": {
"description": "SUCCESS",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/Employee"
}
}
},

#swagger #springboot #codegen #swaggerui

Видео Spring Boot - with Swagger UI | Simple Programming канала Simple Programming
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
9 июня 2020 г. 9:17:06
00:16:15
Другие видео канала
Pivotal Cloud Foundry | Spring Boot with Pivotal's Managed Services | Simple ProgrammingPivotal Cloud Foundry | Spring Boot with Pivotal's Managed Services | Simple ProgrammingSpring Integration with Spring Boot | Recipient List Router | Example | Simple ProgrammingSpring Integration with Spring Boot | Recipient List Router | Example | Simple ProgrammingSpring Cloud | Zipkin Stream Server | Visualization | Distributed Tracing | Simple ProgrammingSpring Cloud | Zipkin Stream Server | Visualization | Distributed Tracing | Simple ProgrammingJackson Annotations | @JsonPropertyOrder | @JsonRawValue | Example | Simple ProgrammingJackson Annotations | @JsonPropertyOrder | @JsonRawValue | Example | Simple ProgrammingSpring Boot - @ConfigurationProperties | PART 2 | Simple ProgrammingSpring Boot - @ConfigurationProperties | PART 2 | Simple ProgrammingClean Code Series - Code Smell | Bad Code | Simple ProgrammingClean Code Series - Code Smell | Bad Code | Simple ProgrammingDesign Principle - Open Close Principle | Simple ProgrammingDesign Principle - Open Close Principle | Simple ProgrammingPivotal Cloud Foundry | Spring Cloud | Managed Services | Introduction | Simple ProgrammingPivotal Cloud Foundry | Spring Cloud | Managed Services | Introduction | Simple ProgrammingPivotal Cloud Foundry | Deploy our First Spring Boot Application | Simple ProgrammingPivotal Cloud Foundry | Deploy our First Spring Boot Application | Simple ProgrammingClean Code Series - Code Smell | Cyclomatic Complexity | Simple ProgrammingClean Code Series - Code Smell | Cyclomatic Complexity | Simple ProgrammingSpring Integration with Spring Boot | Filters | Example | Simple ProgrammingSpring Integration with Spring Boot | Filters | Example | Simple ProgrammingDesign Principle - Single Responsibility Principle | Simple ProgrammingDesign Principle - Single Responsibility Principle | Simple ProgrammingSpring Integration with Spring Boot | Header Enricher | Example | Simple ProgrammingSpring Integration with Spring Boot | Header Enricher | Example | Simple ProgrammingSpring Integration with Redis as Message Queue | PART 2 | Example | Simple ProgrammingSpring Integration with Redis as Message Queue | PART 2 | Example | Simple ProgrammingClean Code Series - Code Smell | Contrived Complexity | Simple ProgrammingClean Code Series - Code Smell | Contrived Complexity | Simple ProgrammingPivotal Cloud Foundry | CLI | Simple ProgrammingPivotal Cloud Foundry | CLI | Simple ProgrammingSpring Boot - Caching Data - EhCache | CacheManager | Part 2 | Simple ProgrammingSpring Boot - Caching Data - EhCache | CacheManager | Part 2 | Simple ProgrammingJackson Annotations | @JsonIgnore | @JsonIgnoreProperties | Example | Simple ProgrammingJackson Annotations | @JsonIgnore | @JsonIgnoreProperties | Example | Simple ProgrammingSpring Boot - Introduction | Simple ProgrammingSpring Boot - Introduction | Simple ProgrammingSpringBoot - RequestBodyAdvice, ResponseBodyAdvice | Example | Simple ProgrammingSpringBoot - RequestBodyAdvice, ResponseBodyAdvice | Example | Simple ProgrammingJackson Annotations | @JsonFormat | Example | Simple ProgrammingJackson Annotations | @JsonFormat | Example | Simple Programming
Яндекс.Метрика