refactor(ECR-005): 再拆 Ask/Decode/Portrait 与 composable,补强 OpenAPI
压低贴线 SFC/composable;报告/档案/量表/意象卡 path 挂 Envelope $ref;CI ESS 门禁跟到 ECR-005。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+91
-1
@@ -63,6 +63,14 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Envelope'
|
||||
- type: object
|
||||
properties:
|
||||
data: { $ref: '#/components/schemas/Profile' }
|
||||
|
||||
/api/v1/profiles/{id}:
|
||||
patch:
|
||||
@@ -73,6 +81,14 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Envelope'
|
||||
- type: object
|
||||
properties:
|
||||
data: { $ref: '#/components/schemas/Profile' }
|
||||
delete:
|
||||
tags: [profile]
|
||||
summary: 删除个人档案
|
||||
@@ -98,6 +114,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: 返回 GrowthReport(detail 按权益裁剪)
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeGrowthReport'
|
||||
|
||||
/api/v1/explore/catalog:
|
||||
get:
|
||||
@@ -179,7 +199,11 @@ paths:
|
||||
profile_id: { type: string, format: uuid }
|
||||
responses:
|
||||
'200':
|
||||
description: GrowthReport type=star(含 chart/planets/aspects_preview/fortune/transits)
|
||||
description: GrowthReport type=star(含 chart/planets/aspects_preview/outlook/transits)
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeGrowthReport'
|
||||
|
||||
/api/v1/reports/synastry:
|
||||
post:
|
||||
@@ -274,6 +298,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: GrowthReport type=synastry
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeGrowthReport'
|
||||
|
||||
/api/v1/reports/rhythm:
|
||||
post:
|
||||
@@ -291,6 +319,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: GrowthReport type=rhythm
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeGrowthReport'
|
||||
|
||||
/api/v1/image-cards/scenes:
|
||||
get:
|
||||
@@ -299,6 +331,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeImageCardScenes'
|
||||
|
||||
/api/v1/image-cards/quota:
|
||||
get:
|
||||
@@ -307,6 +343,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeImageCardQuota'
|
||||
|
||||
/api/v1/image-cards/draw:
|
||||
post:
|
||||
@@ -354,6 +394,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeReportList'
|
||||
|
||||
/api/v1/reports/{id}:
|
||||
get:
|
||||
@@ -364,6 +408,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeGrowthReport'
|
||||
|
||||
/api/v1/scales:
|
||||
get:
|
||||
@@ -389,6 +437,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/EnvelopeScaleDetail'
|
||||
|
||||
/api/v1/scales/{slug}/result:
|
||||
post:
|
||||
@@ -756,3 +808,41 @@ components:
|
||||
- type: object
|
||||
properties:
|
||||
data: { $ref: '#/components/schemas/AskQuota' }
|
||||
|
||||
EnvelopeReportList:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Envelope'
|
||||
- type: object
|
||||
properties:
|
||||
data:
|
||||
type: object
|
||||
properties:
|
||||
items:
|
||||
type: array
|
||||
items: { $ref: '#/components/schemas/GrowthReport' }
|
||||
|
||||
EnvelopeScaleDetail:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Envelope'
|
||||
- type: object
|
||||
properties:
|
||||
data: { $ref: '#/components/schemas/ScaleDetail' }
|
||||
|
||||
EnvelopeImageCardScenes:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Envelope'
|
||||
- type: object
|
||||
properties:
|
||||
data:
|
||||
type: object
|
||||
properties:
|
||||
items:
|
||||
type: array
|
||||
items: { $ref: '#/components/schemas/ImageCardScene' }
|
||||
|
||||
EnvelopeImageCardQuota:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Envelope'
|
||||
- type: object
|
||||
properties:
|
||||
data: { $ref: '#/components/schemas/ImageCardQuota' }
|
||||
|
||||
Reference in New Issue
Block a user