Swagger

프로그래밍/SPRING BOOT

[인프런 : spring-boot] Swagger 구현 방법

지난번에는 Docket 이라는 클래스에 기본 객체를 생성하였는데 여기에 API정보나 consumer 정보 등을 변경해보려고 한다. 먼저 API 정보, produces 정보 등을 입력해준다. [ SwaggerConfig Class ] package com.example.restfulwebservice.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.service.ApiInfo; import springfox.documentation.service.Contact; import spring..

프로그래밍/SPRING BOOT

[인프런 : spring-boot] Swagger 사용

개발자 도움말 페이지를 추가하는 Swagger에 대해 알아보려고 한다. 설계, 빌드, 문서화, 사용에 관한 기능을 지원해주는 Swagger라는 오픈소스를 이용해서 개발자 관련 도움말 페이지를 만들어 볼 것이다. [ Swagger 란? ] 처음에는 단순한 JSON표현을 목적으로 시작했다가 문서를 자동화하기 위해 프로젝트가 발전되었다고 한다. 아파치 2.0 오픈소스 라이센스를 사용하고 있고 수많은 온라인 서비스들이 본인들의 제품을 소개하기 위해서 사용하고 있다. [ Swagger 사용하기 ] 1. 라이브러리 추가하기 io.springfox springfox-boot-starter 3.0.0 io.springfox springfox-swagger-ui 3.0.0 빨간색 오류가 나면 File > Invalida..

공또뤼
'Swagger' 태그의 글 목록