이전 글 모음/기타 복리의 마법사 2020. 2. 19. 21:12
스웨거의 기본구조 : Info 객체와 Base url 스웨거는 JSON 또는 YAML을 사용하여 만들어진다고 합니다. 아래의 예제는 YAML을 사용하지만 JSON으로도 똑같이 사용된다는 것을 생각해주세요. swagger: "2.0" info: title: Sample API description: API description in Markdown. version: 1.0.0 host: api.example.com basePath: /v1 schemes: - https paths: /users: get: summary: Returns a list of users. description: Optional extended description in Markdown. produces: - application/..
더 읽기