openapi: 3.0.0
info:
title: PMS API
version: 1.0.0
paths:
/products:
get:
summary: 상품 목록 조회
responses:
'200':
description: 성공
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Product'
components:
schemas:
Product:
type: object
properties:
id: { type: integer }
name: { type: string }paths는 엔드포인트, components는 재사용 가능한 계약입니다.