Skip to content

Commit

Permalink
feat: change to use PUT method
Browse files Browse the repository at this point in the history
  • Loading branch information
Meng-20 committed Oct 3, 2024
1 parent 06aba1c commit 9537297
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions api/cfm-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,8 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/statusMessage"

# Rename Memory Appliance
/cfm/v1/appliances/{applianceId}/rename:
post:
description: Rename the appliance ID.
put:
description: Rename an appliance by new id.
operationId: appliancesRenameById
parameters:
- $ref: "#/components/parameters/applianceId"
Expand Down Expand Up @@ -366,11 +363,8 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/statusMessage"

# Rename Blade
/cfm/v1/appliances/{applianceId}/blades/{bladeId}/rename:
post:
description: Rename a blade by id.
put:
description: Rename a blade by new id.
operationId: bladesRenameById
parameters:
- $ref: "#/components/parameters/applianceId"
Expand Down Expand Up @@ -885,11 +879,8 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/statusMessage"

# Rename CXL Host
/cfm/v1/hosts/{hostId}/rename:
post:
description: Rename a CXL Host by id.
put:
description: Rename a CXL host by new id.
operationId: hostsRenameById
parameters:
- $ref: "#/components/parameters/hostId"
Expand All @@ -904,7 +895,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/blade'
$ref: '#/components/schemas/host'
"400":
description: Bad Request
content:
Expand Down

0 comments on commit 9537297

Please sign in to comment.