Skip to content

Commit d193495

Browse files
committed
Make podID in PUT request body instead of as URL paramter
1 parent b8ca01d commit d193495

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

cns/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ type GetVMUniqueIDResponse struct {
390390
// IBDevice API Contracts
391391

392392
// AssignIBDevicesToPodRequest represents the request to assign InfiniBand devices to a pod
393-
// PUT /ibdevices/pod/{podname-podnamespace}
393+
// PUT /ibdevices/pod/
394394
type AssignIBDevicesToPodRequest struct {
395395
PodID string `json:"podID"` // podname-podnamespace format
396396
MACAddresses []string `json:"macAddresses"` // Array of MAC addresses like ["60:45:bd:a4:b5:7a", "7c:1e:52:07:11:36"]

cns/swagger.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,19 +120,12 @@ paths:
120120
schema:
121121
$ref: "#/components/schemas/UnpublishNetworkContainerResponse"
122122

123-
/ibdevices/pod/{podname-podnamespace}:
123+
/ibdevices/pod:
124124
put:
125125
summary: Assigns IB devices to a pod
126126
description: >-
127127
Assigns the specified IB devices to the pod identified by PodID. The
128128
MAC addresses of the devices are provided in the request body.
129-
parameters:
130-
- name: podname-podnamespace
131-
in: path
132-
required: true
133-
description: The name and namespace of the pod
134-
schema:
135-
type: string
136129
requestBody:
137130
required: true
138131
content:

0 commit comments

Comments
 (0)