feat: 카드뉴스 포스트(관리자 admin/, /v1/card API, 피드 이미지 슬라이드), 인스타 홍보 기획 문서

This commit is contained in:
minaChoi committed 2026-10-23 15:38:07 +09:00
1 parent 96cbd19c61
commit 739a8c59eb
107 files changed
+17684 -19

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import { defineConfig } from '@hey-api/openapi-ts'
export default defineConfig({
input: process.env.OPENAPI_INPUT ?? 'http://localhost:9810/openapi.json',
output: 'src/api/client',
parser: {
patch: {
// FastAPI operationId("get_feed_v1_feed_get")에서 "_v1_" 앞만 camelCase로 → getFeed / getFeedOptions / addCommentMutation
operations: (_method, _path, operation) => {
const id = operation.operationId ?? ''
const base = id.split('_v1_')[0] || id
operation.operationId = base.replace(/_([a-z])/g, (_m, c: string) => c.toUpperCase())
},
},
},
plugins: [
{ name: '@hey-api/client-fetch', throwOnError: true },
{ name: '@hey-api/typescript', enums: 'javascript' },
'@hey-api/sdk',
'@tanstack/react-query',
],
})