From 61ade6672ebd5b7cfc7a2e126c3b4161a70ddfde Mon Sep 17 00:00:00 2001 From: songwenping Date: Tue, 3 Jan 2023 14:45:09 +0800 Subject: [PATCH] Fix docs: change device_profile_uuid to body in get api Remove useless device_profile_uuid. Closes-Bug: 2000914 Change-Id: I804fd9dddaacbde33dbdf16038975678df294ee9 --- api-ref/source/device_profile.inc | 6 +++--- api-ref/source/parameters.yaml | 13 ++++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/api-ref/source/device_profile.inc b/api-ref/source/device_profile.inc index f82d7ba8..6fc609ca 100644 --- a/api-ref/source/device_profile.inc +++ b/api-ref/source/device_profile.inc @@ -34,7 +34,7 @@ Response - device_profiles: device_profiles - name: device_prof_name_resp - - uuid: device_profile_uuid + - uuid: device_profile_uuid_resp - description: device_profile_description - groups: device_prof_groups_resp - created_at: created @@ -70,7 +70,7 @@ Response - device_profile: device_profile - name: device_prof_name_resp - - uuid: device_profile_uuid + - uuid: device_profile_uuid_resp - description: device_profile_description - groups: device_prof_groups_resp - created_at: created @@ -106,7 +106,7 @@ Response .. rest_parameters:: parameters.yaml - name: device_prof_name_resp - - uuid: device_profile_uuid + - uuid: device_profile_uuid_resp - description: device_profile_description - groups: device_prof_groups_resp - created_at: created diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index b318e59a..ef7aeafd 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -19,13 +19,6 @@ device_profile_name_or_uuid: required: true type: string min_version: 2.2 -device_profile_uuid: - description: | - The uuid of the device_profile for your accelerator request. - This must be a valid uuid otherwise api will return 400. - in: path - required: true - type: string device_profile_uuid_v_21: description: | The uuid of the device_profile for your accelerator request. @@ -221,6 +214,12 @@ device_profile_name: in: body required: true type: string +device_profile_uuid_resp: + description: | + The uuid of the device_profile. + in: body + required: true + type: string device_profiles: description: | A list of ``device profiles`` objects.