Skip to content

Commit 6404a84

Browse files
committed
fix: move renderTarget and graphicInstanceId from query to the body, where applicable
1 parent 8233f60 commit 6404a84

File tree

1 file changed

+53
-79
lines changed

1 file changed

+53
-79
lines changed

v1/specification/open-api/server-api.yaml

Lines changed: 53 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ paths:
225225
required: true
226226
- in: query
227227
name: renderTarget
228-
description: "The RenderTarget to retrieve info about"
228+
description: "The RenderTarget to retrieve info about. Note that this is a JSON-stringified RenderTargetIdentifier!"
229229
schema:
230230
$ref: "#/components/schemas/RenderTargetIdentifier"
231231
required: true
@@ -356,19 +356,16 @@ paths:
356356
schema:
357357
$ref: "#/components/schemas/RendererId"
358358
required: true
359-
- in: query
360-
name: renderTarget
361-
description: "The RenderTarget to load the graphic onto"
362-
schema:
363-
$ref: "#/components/schemas/RenderTargetIdentifier"
364-
required: true
365359
requestBody:
366360
required: true
367361
content:
368362
application/json:
369363
schema:
370364
type: object
371365
properties:
366+
renderTarget:
367+
description: "The RenderTarget to load the graphic onto"
368+
$ref: "#/components/schemas/RenderTargetIdentifier"
372369
graphicId:
373370
description: "The graphic to load"
374371
$ref: "#/components/schemas/GraphicId"
@@ -382,6 +379,7 @@ paths:
382379
required:
383380
- data
384381
required:
382+
- renderTarget
385383
- graphicId
386384
- params
387385
responses:
@@ -428,28 +426,24 @@ paths:
428426
schema:
429427
$ref: "#/components/schemas/RendererId"
430428
required: true
431-
- in: query
432-
name: renderTarget
433-
description: "The RenderTarget to target with the command."
434-
schema:
435-
$ref: "#/components/schemas/RenderTargetIdentifier"
436-
required: true
437-
- in: query
438-
name: graphicInstanceId
439-
description: "Id of the Graphic instance to target with the command"
440-
schema:
441-
$ref: "#/components/schemas/GraphicInstanceId"
442-
required: true
443429
requestBody:
444430
required: true
445431
content:
446432
application/json:
447433
schema:
448434
type: object
449435
properties:
436+
renderTarget:
437+
description: "The RenderTarget to target with the command."
438+
$ref: "#/components/schemas/RenderTargetIdentifier"
439+
graphicInstanceId:
440+
description: "Id of the Graphic instance to target with the command"
441+
$ref: "#/components/schemas/GraphicInstanceId"
450442
params:
451443
$ref: "#/components/schemas/UpdateActionParams"
452444
required:
445+
- renderTarget
446+
- graphicInstanceId
453447
- params
454448
responses:
455449
200:
@@ -494,28 +488,24 @@ paths:
494488
schema:
495489
$ref: "#/components/schemas/RendererId"
496490
required: true
497-
- in: query
498-
name: renderTarget
499-
description: "The RenderTarget to target with the command"
500-
schema:
501-
$ref: "#/components/schemas/RenderTargetIdentifier"
502-
required: true
503-
- in: query
504-
name: graphicInstanceId
505-
description: "Id of the Graphic instance to target with the command"
506-
schema:
507-
$ref: "#/components/schemas/GraphicInstanceId"
508-
required: true
509491
requestBody:
510492
required: true
511493
content:
512494
application/json:
513495
schema:
514496
type: object
515497
properties:
498+
renderTarget:
499+
description: "The RenderTarget to target with the command."
500+
$ref: "#/components/schemas/RenderTargetIdentifier"
501+
graphicInstanceId:
502+
description: "Id of the Graphic instance to target with the command"
503+
$ref: "#/components/schemas/GraphicInstanceId"
516504
params:
517505
$ref: "#/components/schemas/PlayActionParams"
518506
required:
507+
- renderTarget
508+
- graphicInstanceId
519509
- params
520510

521511
responses:
@@ -567,28 +557,24 @@ paths:
567557
schema:
568558
$ref: "#/components/schemas/RendererId"
569559
required: true
570-
- in: query
571-
name: renderTarget
572-
description: "The RenderTarget to target with the command"
573-
schema:
574-
$ref: "#/components/schemas/RenderTargetIdentifier"
575-
required: true
576-
- in: query
577-
name: graphicInstanceId
578-
description: "Id of the Graphic instance to target with the command"
579-
schema:
580-
$ref: "#/components/schemas/GraphicInstanceId"
581-
required: true
582560
requestBody:
583561
required: true
584562
content:
585563
application/json:
586564
schema:
587565
type: object
588566
properties:
567+
renderTarget:
568+
description: "The RenderTarget to target with the command"
569+
$ref: "#/components/schemas/RenderTargetIdentifier"
570+
graphicInstanceId:
571+
description: "Id of the Graphic instance to target with the command"
572+
$ref: "#/components/schemas/GraphicInstanceId"
589573
params:
590574
$ref: "#/components/schemas/StopActionParams"
591575
required:
576+
- renderTarget
577+
- graphicInstanceId
592578
- params
593579
responses:
594580
200:
@@ -634,28 +620,24 @@ paths:
634620
schema:
635621
$ref: "#/components/schemas/RendererId"
636622
required: true
637-
- in: query
638-
name: renderTarget
639-
description: "The RenderTarget to target with the command"
640-
schema:
641-
$ref: "#/components/schemas/RenderTargetIdentifier"
642-
required: true
643-
- in: query
644-
name: graphicInstanceId
645-
description: "Id of the Graphic instance to target with the command"
646-
schema:
647-
$ref: "#/components/schemas/GraphicInstanceId"
648-
required: true
649623
requestBody:
650624
required: true
651625
content:
652626
application/json:
653627
schema:
654628
type: object
655629
properties:
630+
renderTarget:
631+
description: "The RenderTarget to target with the command"
632+
$ref: "#/components/schemas/RenderTargetIdentifier"
633+
graphicInstanceId:
634+
description: "Id of the Graphic instance to target with the command"
635+
$ref: "#/components/schemas/GraphicInstanceId"
656636
params:
657637
$ref: "#/components/schemas/CustomActionParams"
658638
required:
639+
- renderTarget
640+
- graphicInstanceId
659641
- params
660642
responses:
661643
200:
@@ -701,25 +683,19 @@ paths:
701683
schema:
702684
$ref: "#/components/schemas/RendererId"
703685
required: true
704-
- in: query
705-
name: renderTarget
706-
description: "The RenderTarget to target with the command"
707-
schema:
708-
$ref: "#/components/schemas/RenderTargetIdentifier"
709-
required: true
710-
- in: query
711-
name: graphicInstanceId
712-
description: "Id of the Graphic instance to target with the command"
713-
schema:
714-
$ref: "#/components/schemas/GraphicInstanceId"
715-
required: true
716686
requestBody:
717687
required: true
718688
content:
719689
application/json:
720690
schema:
721691
type: object
722692
properties:
693+
renderTarget:
694+
description: "The RenderTarget to target with the command"
695+
$ref: "#/components/schemas/RenderTargetIdentifier"
696+
graphicInstanceId:
697+
description: "Id of the Graphic instance to target with the command"
698+
$ref: "#/components/schemas/GraphicInstanceId"
723699
params:
724700
description: "Params to send to the goToTime() method of the graphic"
725701
type: object
@@ -731,6 +707,8 @@ paths:
731707
required:
732708
- timestamp
733709
required:
710+
- renderTarget
711+
- graphicInstanceId
734712
- params
735713
responses:
736714
200:
@@ -776,25 +754,19 @@ paths:
776754
schema:
777755
$ref: "#/components/schemas/RendererId"
778756
required: true
779-
- in: query
780-
name: renderTarget
781-
description: "The RenderTarget to target with the command"
782-
schema:
783-
$ref: "#/components/schemas/RenderTargetIdentifier"
784-
required: true
785-
- in: query
786-
name: graphicInstanceId
787-
description: "Id of the Graphic instance to target with the command"
788-
schema:
789-
$ref: "#/components/schemas/GraphicInstanceId"
790-
required: true
791757
requestBody:
792758
required: true
793759
content:
794760
application/json:
795761
schema:
796762
type: object
797763
properties:
764+
renderTarget:
765+
description: "The RenderTarget to target with the command"
766+
$ref: "#/components/schemas/RenderTargetIdentifier"
767+
graphicInstanceId:
768+
description: "Id of the Graphic instance to target with the command"
769+
$ref: "#/components/schemas/GraphicInstanceId"
798770
params:
799771
description: "Params to send to the setActionsSchedule() method of the graphic"
800772
type: object
@@ -858,6 +830,8 @@ paths:
858830
required:
859831
- schedule
860832
required:
833+
- renderTarget
834+
- graphicInstanceId
861835
- params
862836
responses:
863837
200:

0 commit comments

Comments
 (0)