feat(ECR-046): ScaleDefinition 元数据写面闭环并 Closed
explore.write POST/PUT · create→draft · status 仍 ECR-008 · migration 000055 · Loop STOP Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1154,6 +1154,23 @@ paths:
|
||||
description: Unauthorized
|
||||
'403':
|
||||
description: Forbidden
|
||||
post:
|
||||
tags: [admin]
|
||||
summary: Create ScaleDefinition metadata
|
||||
description: >
|
||||
Requires admin.explore.write · ECR-046 · fields slug/title/description ·
|
||||
creates status=draft · status publish remains PATCH /admin/scales/{id} (ECR-008)
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
'400':
|
||||
description: Invalid
|
||||
'401':
|
||||
description: Unauthorized
|
||||
'403':
|
||||
description: Forbidden
|
||||
'409':
|
||||
description: Slug conflict
|
||||
|
||||
/api/v1/admin/explore/scales/{id}:
|
||||
get:
|
||||
@@ -1169,6 +1186,26 @@ paths:
|
||||
description: OK
|
||||
'404':
|
||||
description: Not found
|
||||
put:
|
||||
tags: [admin]
|
||||
summary: Update ScaleDefinition metadata
|
||||
description: Requires admin.explore.write · does not change status · ECR-046
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: true
|
||||
schema: { type: string, format: uuid }
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
'400':
|
||||
description: Invalid
|
||||
'403':
|
||||
description: Forbidden
|
||||
'404':
|
||||
description: Not found
|
||||
'409':
|
||||
description: Slug conflict
|
||||
|
||||
/api/v1/admin/explore/star-configs:
|
||||
get:
|
||||
|
||||
Reference in New Issue
Block a user