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:
Matt Miller 2026-05-27 15:52:37 -07:00
parent 987a937658
commit 98405f25b7

View File

@ -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