mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-30 10:57:23 +08:00
openapi: remove unused hub profile endpoints
GET /api/hub/profiles/{username} (getHubProfile) and PUT /api/hub/profiles/me
(updateMyHubProfile) have no implementation in core and no callers in any
Comfy-Org client (verified org-wide). Removing both from the shared spec.
GET /api/hub/profiles/me is retained — it's actively used by the frontend.
This commit is contained in:
parent
987a937658
commit
98405f25b7
87
openapi.yaml
87
openapi.yaml
@ -3690,40 +3690,6 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CloudError"
|
||||
|
||||
'500':
|
||||
description: Internal server error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ErrorResponse'
|
||||
/api/hub/profiles/{username}:
|
||||
get:
|
||||
operationId: getHubProfile
|
||||
tags: [hub]
|
||||
summary: Get a hub profile by username
|
||||
description: "[cloud-only] Returns the public hub profile for the given username."
|
||||
x-runtime: [cloud]
|
||||
parameters:
|
||||
- name: username
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
description: Hub username
|
||||
responses:
|
||||
"200":
|
||||
description: Profile
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/HubProfile"
|
||||
"404":
|
||||
description: Not found
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CloudError"
|
||||
|
||||
'500':
|
||||
description: Internal server error
|
||||
content:
|
||||
@ -3807,59 +3773,6 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ErrorResponse'
|
||||
put:
|
||||
operationId: updateMyHubProfile
|
||||
tags: [hub]
|
||||
summary: Update the authenticated user's hub profile
|
||||
description: "[cloud-only] Updates the hub profile of the currently authenticated user."
|
||||
x-runtime: [cloud]
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
username:
|
||||
type: string
|
||||
display_name:
|
||||
type: string
|
||||
bio:
|
||||
type: string
|
||||
avatar_url:
|
||||
type: string
|
||||
format: uri
|
||||
links:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
format: uri
|
||||
responses:
|
||||
"200":
|
||||
description: Updated profile
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/HubProfile"
|
||||
"400":
|
||||
description: Bad request
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CloudError"
|
||||
"401":
|
||||
description: Unauthorized
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CloudError"
|
||||
"409":
|
||||
description: Conflict
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CloudError"
|
||||
|
||||
/api/hub/workflows:
|
||||
get:
|
||||
operationId: listHubWorkflows
|
||||
|
||||
Loading…
Reference in New Issue
Block a user