Skip to content

Commit

Permalink
Sepc files - missing fields added to response.
Browse files Browse the repository at this point in the history
  • Loading branch information
harish-bansal committed Feb 28, 2021
1 parent 3f873a9 commit 0847957
Show file tree
Hide file tree
Showing 52 changed files with 258 additions and 56 deletions.
8 changes: 7 additions & 1 deletion spec/auth_token/token_create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ paths:
type: object
properties:
result:
type: string
message:
type: string
data:
type: object
properties:
token:
type: string
type: string
required:
- result
2 changes: 1 addition & 1 deletion spec/device_management/device_allocate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ paths:
message:
type: string
required:
- result
- result
4 changes: 3 additions & 1 deletion spec/device_management/device_info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: object
properties:
Expand Down Expand Up @@ -80,4 +82,4 @@ paths:
- AssignedTo
- PowerCommands
required:
- result
- result
2 changes: 1 addition & 1 deletion spec/device_management/device_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ paths:
items:
type: string
required:
- result
- result
2 changes: 1 addition & 1 deletion spec/device_management/device_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ paths:
message:
type: string
required:
- result
- result
2 changes: 1 addition & 1 deletion spec/device_management/device_release_force.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ paths:
message:
type: string
required:
- result
- result
6 changes: 5 additions & 1 deletion spec/device_management/device_status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ paths:
status:
type: string
assigned_to:
type: string
type: string
message:
type: string
required:
- result
6 changes: 5 additions & 1 deletion spec/hotplug/hotplug_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: object
properties:
Expand All @@ -44,4 +46,6 @@ paths:
hotplug-3:
type: string
hotplug-4:
type: string
type: string
required:
- result
4 changes: 4 additions & 0 deletions spec/hotplug/hotplug_off.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: string
required:
- result
x-codegen-request-body-name: data
4 changes: 4 additions & 0 deletions spec/hotplug/hotplug_on.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: string
required:
- result
x-codegen-request-body-name: data
6 changes: 5 additions & 1 deletion spec/hotplug/hotplug_status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: string
type: string
required:
- result
4 changes: 4 additions & 0 deletions spec/hotplug/hotplug_switch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: string
required:
- result
x-codegen-request-body-name: data
6 changes: 5 additions & 1 deletion spec/labcontrollers/lab_controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: array
items:
Expand All @@ -42,4 +44,6 @@ paths:
id:
type: string
'type':
type: string
type: string
required:
- result
4 changes: 4 additions & 0 deletions spec/netboot/netboot_fmanager_download.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: object
properties:
Expand All @@ -50,3 +52,5 @@ paths:
type: boolean
file_size:
type: integer
required:
- result
6 changes: 5 additions & 1 deletion spec/netboot/netboot_fmanager_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: array
items:
Expand All @@ -55,4 +57,6 @@ paths:
file_or_dir_name:
type: string
'type':
type: string
type: string
required:
- result
46 changes: 28 additions & 18 deletions spec/netboot/netboot_fmanager_list_upload_delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,19 @@ paths:
schema:
type: object
properties:
file:
title: File
result:
type: string
message:
type: string
format: uri
readOnly: true
data:
type: array
file:
title: File
type: string
format: uri
readOnly: true
required:
- result
put:
tags:
- api
Expand Down Expand Up @@ -78,11 +86,14 @@ paths:
schema:
type: object
properties:
file:
title: File
result:
type: string
format: uri
readOnly: true
message:
type: string
required:
- result
required:
- result
x-codegen-request-body-name: data
post:
tags:
Expand Down Expand Up @@ -120,11 +131,14 @@ paths:
schema:
type: object
properties:
file:
title: File
result:
type: string
message:
type: string
format: uri
readOnly: true
required:
- result
required:
- result
x-codegen-request-body-name: data
delete:
tags:
Expand Down Expand Up @@ -154,9 +168,5 @@ paths:
type: string
message:
type: string
required:
- result




required:
- result
8 changes: 8 additions & 0 deletions spec/netboot/netboot_fsroot_symlink_info_create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: string
required:
- result
post:
tags:
- api
Expand Down Expand Up @@ -72,4 +76,8 @@ paths:
properties:
result:
type: string
message:
type: string
required:
- result
x-codegen-request-body-name: data
4 changes: 4 additions & 0 deletions spec/netboot/netboot_transfer_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ paths:
type: string
progress_url:
type: string
message:
type: string
required:
- result
x-codegen-request-body-name: data
6 changes: 5 additions & 1 deletion spec/netboot/netboot_transfer_file_cancel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@ paths:
type: object
properties:
result:
type: string
type: string
message:
type: string
required:
- result
5 changes: 4 additions & 1 deletion spec/netboot/netboot_transfer_file_queue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,7 @@ paths:
type: object
scheduled_jobs:
type: object

message:
type: string
required:
- result
4 changes: 4 additions & 0 deletions spec/netboot/netboot_transfer_file_status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ paths:
properties:
info:
type: object
message:
type: string
required:
- result
18 changes: 17 additions & 1 deletion spec/portfw/portfw_list_add_remove.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: array
items:
Expand All @@ -51,6 +53,8 @@ paths:
type: string
dip:
type: string
required:
- result
put:
tags:
- api
Expand Down Expand Up @@ -100,6 +104,10 @@ paths:
properties:
result:
type: string
message:
type: string
required:
- result
x-codegen-request-body-name: data
post:
tags:
Expand Down Expand Up @@ -150,6 +158,10 @@ paths:
properties:
result:
type: string
message:
type: string
required:
- result
x-codegen-request-body-name: data
delete:
tags:
Expand All @@ -171,4 +183,8 @@ paths:
type: object
properties:
result:
type: string
type: string
message:
type: string
required:
- result
4 changes: 4 additions & 0 deletions spec/power/power_off.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ paths:
properties:
result:
type: string
message:
type: string
data:
type: string
required:
- result
x-codegen-request-body-name: data
Loading

0 comments on commit 0847957

Please sign in to comment.