-
Notifications
You must be signed in to change notification settings - Fork 987
/
apipie_examples.yml
4645 lines (4645 loc) · 136 KB
/
apipie_examples.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
apipies#index:
- verb: !ruby/sym GET
path: /apidoc/domains/show.html
query:
request_data:
response_data:
code: 200
show_in_doc: 1
recorded: true
- verb: !ruby/sym GET
path: /apidoc/domains/show.html
query:
request_data:
response_data:
code: 200
show_in_doc: 0
recorded: true
- verb: !ruby/sym GET
path: /apidoc/domains/destroy.html
query:
request_data:
response_data:
code: 200
show_in_doc: 0
recorded: true
architectures#create:
- verb: !ruby/sym POST
path: /api/architectures
query:
request_data:
architecture:
name: i386
response_data:
architecture:
name: i386
id: 501905020
updated_at: 2012-12-18T15:24:43Z
operatingsystem_ids: []
created_at: 2012-12-18T15:24:43Z
code: "200"
show_in_doc: 1
recorded: true
architectures#destroy:
- verb: !ruby/sym DELETE
path: /api/architectures/s390
query: ""
request_data:
response_data:
architecture:
name: s390
id: 381564594
code: "200"
show_in_doc: 1
recorded: true
- verb: !ruby/sym DELETE
path: /api/architectures/x86_64
query: ""
request_data:
response_data:
architecture:
id: 501905019
errors:
base:
- x86_64 is used by temp-02.useless.net
- x86_64 is used by temp-01.yourdomain.net
- x86_64 is used by suse01.yourdomain.net
- x86_64 is used by temp01.yourdomain.net
- x86_64 is used by anotherfullhost
- x86_64 is used by temp.yourdomain.net
- x86_64 is used by my5name.mydomain.net
- x86_64 is used by dhcp.mydomain.net
- x86_64 is used by otherfullhost
- x86_64 is used by myfullname.mydomain.net
- x86_64 is used by sdhcp.mydomain.net
full_messages:
- x86_64 is used by temp-02.useless.net
- x86_64 is used by temp-01.yourdomain.net
- x86_64 is used by suse01.yourdomain.net
- x86_64 is used by temp01.yourdomain.net
- x86_64 is used by anotherfullhost
- x86_64 is used by temp.yourdomain.net
- x86_64 is used by my5name.mydomain.net
- x86_64 is used by dhcp.mydomain.net
- x86_64 is used by otherfullhost
- x86_64 is used by myfullname.mydomain.net
- x86_64 is used by sdhcp.mydomain.net
code: "422"
show_in_doc: 0
recorded: true
architectures#index:
- verb: !ruby/sym GET
path: /api/architectures
query: ""
request_data:
response_data:
- architecture:
name: s390
id: 381564594
updated_at: 2012-12-18T15:24:42Z
operatingsystem_ids: []
created_at: 2012-12-18T15:24:42Z
- architecture:
name: sparc
id: 331892513
updated_at: 2012-12-18T15:24:42Z
operatingsystem_ids:
- 442321401
created_at: 2012-12-18T15:24:42Z
- architecture:
name: x86_64
id: 501905019
updated_at: 2012-12-18T15:24:42Z
operatingsystem_ids:
- 331303656
- 309172073
- 1073012828
created_at: 2012-12-18T15:24:42Z
code: "200"
show_in_doc: 1
recorded: true
- verb: !ruby/sym GET
path: /api/architectures
query: ""
request_data:
response_data:
- architecture:
name: s390
id: 381564594
updated_at: 2012-12-18T15:24:42Z
operatingsystem_ids: []
created_at: 2012-12-18T15:24:42Z
- architecture:
name: sparc
id: 331892513
updated_at: 2012-12-18T15:24:42Z
operatingsystem_ids:
- 442321401
created_at: 2012-12-18T15:24:42Z
- architecture:
name: x86_64
id: 501905019
updated_at: 2012-12-18T15:24:42Z
operatingsystem_ids:
- 331303656
- 309172073
- 1073012828
created_at: 2012-12-18T15:24:42Z
code: "200"
show_in_doc: 0
recorded: true
architectures#show:
- verb: !ruby/sym GET
path: /api/architectures/x86_64
query: ""
request_data:
response_data:
architecture:
name: x86_64
id: 501905019
updated_at: 2012-12-18T15:24:42Z
operatingsystem_ids:
- 309172073
- 1073012828
- 331303656
created_at: 2012-12-18T15:24:42Z
code: "200"
show_in_doc: 1
recorded: true
architectures#update:
- verb: !ruby/sym PUT
path: /api/architectures/x86_64
query:
request_data:
architecture: {}
response_data:
architecture:
name: x86_64
id: 501905019
code: "200"
show_in_doc: 1
recorded: true
- verb: !ruby/sym PUT
path: /api/architectures/x86_64
query:
request_data:
architecture: {}
response_data:
architecture:
name: x86_64
id: 501905019
code: "200"
show_in_doc: 0
recorded: true
- verb: !ruby/sym PUT
path: /api/architectures/x86_64
query:
request_data:
architecture: {}
response_data:
message: Access denied
details:
code: "403"
show_in_doc: 0
recorded: true
audits#index:
- verb: !ruby/sym GET
path: /api/audits
query: ""
request_data:
response_data:
- audit:
auditable_name:
user_id:
associated_id: 272
associated_name:
id: 1
comment:
auditable_id: 0
auditable_type: Host
associated_type: Host
remote_address:
action: update
audited_changes:
architecture_id:
- 10463
- 10466
user_type:
version: 1
created_at: 2009-12-14T08:01:17Z
code: "200"
show_in_doc: 1
recorded: true
audits#show:
- verb: !ruby/sym GET
path: /api/audits/1
query: ""
request_data:
response_data:
audit:
auditable_name:
user_id:
associated_id: 272
associated_name:
id: 1
comment:
auditable_id: 0
auditable_type: Host
associated_type: Host
remote_address:
action: update
audited_changes:
architecture_id:
- 10463
- 10466
user_type:
version: 1
created_at: 2009-12-14T08:01:17Z
code: "200"
show_in_doc: 1
recorded: true
auth_source_ldaps#create:
- verb: !ruby/sym POST
path: /api/auth_source_ldaps
query:
request_data:
auth_source_ldap:
name: ldap2
host: ldap2
response_data:
auth_source_ldap:
name: ldap2
tls: false
port: 389
attr_login:
attr_lastname:
attr_firstname:
id: 980190963
updated_at: 2012-12-18T15:24:44Z
host: ldap2
base_dn:
attr_mail:
account_password:
account:
onthefly_register: false
created_at: 2012-12-18T15:24:44Z
code: "201"
show_in_doc: 1
recorded: true
auth_source_ldaps#destroy:
- verb: !ruby/sym DELETE
path: /api/auth_source_ldaps/980190962
query: ""
request_data:
response_data:
auth_source_ldap:
name: ldap
tls: true
port: 123
attr_login: uid
attr_lastname: sn
attr_firstname: givenName
id: 980190962
updated_at: 2012-12-18T15:24:43Z
host: ldap
base_dn: "dn=x,dn=y"
attr_mail: mail
account_password:
account:
onthefly_register: true
created_at: 2012-12-18T15:24:43Z
code: "200"
show_in_doc: 1
recorded: true
auth_source_ldaps#index:
- verb: !ruby/sym GET
path: /api/auth_source_ldaps
query: ""
request_data:
response_data:
- auth_source_ldap:
name: ldap
attr_lastname: sn
port: 123
attr_firstname: givenName
attr_login: uid
tls: true
id: 980190962
updated_at: 2012-12-18T15:24:43Z
host: ldap
base_dn: "dn=x,dn=y"
attr_mail: mail
account:
type: AuthSourceLdap
created_at: 2012-12-18T15:24:43Z
onthefly_register: true
code: "200"
show_in_doc: 1
recorded: true
auth_source_ldaps#show:
- verb: !ruby/sym GET
path: /api/auth_source_ldaps/980190962
query: ""
request_data:
response_data:
auth_source_ldap:
name: ldap
attr_lastname: sn
attr_firstname: givenName
port: 123
attr_login: uid
tls: true
id: 980190962
updated_at: 2012-12-18T15:24:43Z
host: ldap
base_dn: "dn=x,dn=y"
attr_mail: mail
account:
type: AuthSourceLdap
created_at: 2012-12-18T15:24:43Z
onthefly_register: true
code: "200"
show_in_doc: 1
recorded: true
auth_source_ldaps#update:
- verb: !ruby/sym PUT
path: /api/auth_source_ldaps/980190962
query:
request_data:
auth_source_ldap: {}
response_data:
auth_source_ldap:
name: ldap
tls: true
port: 123
attr_login: uid
attr_lastname: sn
attr_firstname: givenName
id: 980190962
updated_at: 2012-12-18T15:24:43Z
host: ldap
base_dn: "dn=x,dn=y"
attr_mail: mail
account_password:
account:
onthefly_register: true
created_at: 2012-12-18T15:24:43Z
code: "200"
show_in_doc: 1
recorded: true
bookmarks#create:
- verb: !ruby/sym POST
path: /api/bookmarks
query:
request_data:
bookmark:
query: bar
name: foo-bar
public: false
controller: hosts
response_data:
bookmark:
name: foo-bar
query: bar
id: 980190963
owner_id: 886836129
public: false
controller: hosts
owner_type: User
code: "200"
show_in_doc: 1
recorded: true
- verb: !ruby/sym POST
path: /api/bookmarks
query:
request_data:
bookmark:
query: " facts.architecture = x86_64"
name: facts.architecture
public: false
controller: hosts
response_data:
bookmark:
name: facts.architecture
query: " facts.architecture = x86_64"
id: 980190964
owner_id: 886836129
public: false
controller: hosts
owner_type: User
code: "200"
show_in_doc: 0
recorded: true
bookmarks#destroy:
- verb: !ruby/sym DELETE
path: /api/bookmarks/foo
query: ""
request_data:
response_data:
bookmark:
query: foo=boo
name: foo
id: 980190962
public: true
owner_id:
controller: hosts
owner_type:
code: "200"
show_in_doc: 1
recorded: true
bookmarks#index:
- verb: !ruby/sym GET
path: /api/bookmarks
query: ""
request_data:
response_data:
- bookmark:
name: bar
query: bar=car
id: 298486374
owner_id:
public: false
controller: hosts
owner_type:
- bookmark:
name: foo
query: foo=boo
id: 980190962
owner_id:
public: true
controller: hosts
owner_type:
code: "200"
show_in_doc: 1
recorded: true
bookmarks#show:
- verb: !ruby/sym GET
path: /api/bookmarks/foo
query: ""
request_data:
response_data:
bookmark:
name: foo
query: foo=boo
id: 980190962
owner_id:
public: true
controller: hosts
owner_type:
code: "200"
show_in_doc: 1
recorded: true
bookmarks#update:
- verb: !ruby/sym PUT
path: /api/bookmarks/foo
query:
request_data:
bookmark: {}
response_data:
bookmark:
name: foo
query: foo=boo
user:
name: apiadmin User
login: apiadmin
email: apiadmin@someware.com
id: 980190962
public: true
controller: hosts
code: "200"
show_in_doc: 1
recorded: true
common_parameters#create:
- verb: !ruby/sym POST
path: /api/common_parameters
query:
request_data:
common_parameter:
name: special_key
value: "123"
response_data:
common_parameter:
name: special_key
value: "123"
id: 767575239
code: "200"
show_in_doc: 1
recorded: true
common_parameters#destroy:
- verb: !ruby/sym DELETE
path: /api/common_parameters/636252244
query: ""
request_data:
response_data:
common_parameter:
name: test
value: myvalue
id: 636252244
code: "200"
show_in_doc: 1
recorded: true
common_parameters#index:
- verb: !ruby/sym GET
path: /api/common_parameters
query: ""
request_data:
response_data:
- common_parameter:
name: test
value: myvalue
id: 636252244
code: "200"
show_in_doc: 1
recorded: true
common_parameters#show:
- verb: !ruby/sym GET
path: /api/common_parameters/636252244
query: ""
request_data:
response_data:
common_parameter:
name: test
value: myvalue
id: 636252244
code: "200"
show_in_doc: 1
recorded: true
common_parameters#update:
- verb: !ruby/sym PUT
path: /api/common_parameters/636252244
query:
request_data:
common_parameter: {}
response_data:
common_parameter:
name: test
value: myvalue
id: 636252244
code: "200"
show_in_doc: 1
recorded: true
compute_resources#create:
- verb: !ruby/sym POST
path: /api/compute_resources
query:
request_data:
compute_resource:
name: special_compute
user: user@example.com
provider: EC2
password: secret
region: eu-west-1
response_data:
compute_resource:
name: special_compute
url: eu-west-1
user: user@example.com
provider: EC2
id: 980190963
description:
updated_at: 2012-12-18T15:24:44Z
created_at: 2012-12-18T15:24:44Z
code: "200"
show_in_doc: 1
recorded: true
compute_resources#destroy:
- verb: !ruby/sym DELETE
path: /api/compute_resources/932571420
query: ""
request_data:
response_data:
compute_resource:
url: test:///default
name: yourcompute
user: MyString
id: 932571420
uuid: yourcompute
updated_at: 2012-12-18T15:24:42Z
description: yourcompute
attrs:
created_at: 2012-12-18T15:24:42Z
code: "200"
show_in_doc: 1
recorded: true
compute_resources#index:
- verb: !ruby/sym GET
path: /api/compute_resources
query: ""
request_data:
response_data:
- compute_resource:
name: mycompute
url: test:///default
user: MyString
provider: Libvirt
id: 367690737
description: mycompute
updated_at: 2012-12-18T15:24:42Z
created_at: 2012-12-18T15:24:42Z
- compute_resource:
name: MyString
url: qemu://stam/system
user: MyString
provider: Libvirt
id: 980190962
description: MyString
updated_at: 2012-12-18T15:24:42Z
created_at: 2012-12-18T15:24:42Z
- compute_resource:
name: yourcompute
url: test:///default
user: MyString
provider: Libvirt
id: 932571420
description: yourcompute
updated_at: 2012-12-18T15:24:42Z
created_at: 2012-12-18T15:24:42Z
code: "200"
show_in_doc: 1
recorded: true
compute_resources#show:
- verb: !ruby/sym GET
path: /api/compute_resources/980190962-mystring
query: ""
request_data:
response_data:
compute_resource:
name: MyString
url: qemu://stam/system
user: MyString
provider: Libvirt
id: 980190962
description: MyString
updated_at: 2012-12-18T15:24:42Z
created_at: 2012-12-18T15:24:42Z
code: "200"
show_in_doc: 1
recorded: true
compute_resources#update:
- verb: !ruby/sym PUT
path: /api/compute_resources/367690737-mycompute
query:
request_data:
compute_resource:
description: new_description
response_data:
compute_resource:
url: test:///default
name: mycompute
user: MyString
id: 367690737
uuid: mycompute
updated_at: 2012-12-18T15:24:45Z
description: new_description
attrs: {}
created_at: 2012-12-18T15:24:42Z
code: "200"
show_in_doc: 1
recorded: true
config_templates#build_pxe_default:
- verb: !ruby/sym GET
path: /api/config_templates/build_pxe_default
query: ""
request_data:
response_data: PXE Default file has been deployed to all Smart Proxies
code: "200"
show_in_doc: 1
recorded: true
config_templates#create:
- verb: !ruby/sym POST
path: /api/config_templates
query:
request_data:
config_template:
name: RandomName
template: This is a test template
template_kind_id: 1
response_data:
config_template:
name: RandomName
audit_comment:
id: 1007981702
"":
snippet:
template: This is a test template
code: "200"
show_in_doc: 1
recorded: true
- verb: !ruby/sym POST
path: /api/config_templates
query:
request_data: {}
response_data:
config_template:
id:
errors:
name:
- can't be blank
template:
- can't be blank
template_kind_id:
- can't be blank
full_messages:
- Name can't be blank
- Template can't be blank
- Template kind can't be blank
code: "422"
show_in_doc: 0
recorded: true
config_templates#destroy:
- verb: !ruby/sym DELETE
path: /api/config_templates/centos5_3_pxelinux
query: ""
request_data:
response_data:
config_template:
name: centos5_3_pxelinux
id: 1007981701
template: default linux~label linux~kernel <%= @kernel %>~append initrd=<%= @initrd %> ks=<%= foreman_url("kickstart")%> ksdevice=bootif network kssendmac
snippet:
template_kind:
name: PXELinux
id: 452984334
code: "200"
show_in_doc: 1
recorded: true
- verb: !ruby/sym DELETE
path: /api/config_templates/centos5_3_pxelinux
query: ""
request_data:
response_data:
config_template:
id: 1007981701
errors:
base:
- "centos5_3_pxelinux is used by centos 5.3 - "
full_messages:
- "centos5_3_pxelinux is used by centos 5.3 - "
code: "422"
show_in_doc: 0
recorded: true
config_templates#index:
- verb: !ruby/sym GET
path: /api/config_templates
query: ""
request_data:
response_data:
- config_template:
name: centos5_3_pxelinux
audit_comment:
id: 1007981701
snippet:
template: default linux~label linux~kernel <%= @kernel %>~append initrd=<%= @initrd %> ks=<%= foreman_url("kickstart")%> ksdevice=bootif network kssendmac
template_kind:
name: PXELinux
id: 452984334
- config_template:
name: MyFinish
audit_comment:
id: 104314179
snippet:
template: MyFinish
template_kind:
name: finish
id: 550103832
- config_template:
name: MyScript
audit_comment:
id: 981457253
snippet:
template: MyText
template_kind:
name: script
id: 478250810
- config_template:
name: MyString
audit_comment:
id: 943779058
snippet:
template: MyText
template_kind:
name: gPXE
id: 158998239
- config_template:
name: MyString2
audit_comment:
id: 269958254
snippet:
template: MyText
template_kind:
name: provision
id: 983253650
- config_template:
name: PXE Default File
audit_comment:
id: 352050261
snippet:
template: default linux~label linux~kernel <%= @kernel %>~append initrd=<%= @initrd %> ksdevice=bootif network kssendmac
template_kind:
name: PXELinux
id: 452984334
- config_template:
name: PXE Default Menu
audit_comment:
id: 684651467
"":
snippet:
template: FOO
- config_template:
name: PXE Localboot Default
audit_comment:
id: 821548108
snippet:
template: DEFAULT menu~PROMPT 0~MENU TITLE PXE Menu~TIMEOUT 200~TOTALTIMEOUT 6000~ONTIMEOUT local~~LABEL local~MENU LABEL (local)~MENU DEFAULT~LOCALBOOT 0
template_kind:
name: PXELinux
id: 452984334
code: "200"
show_in_doc: 1
recorded: true
config_templates#show:
- verb: !ruby/sym GET
path: /api/config_templates/centos5_3_pxelinux
query: ""
request_data:
response_data:
config_template:
name: centos5_3_pxelinux
id: 1007981701
audit_comment:
snippet:
template: default linux~label linux~kernel <%= @kernel %>~append initrd=<%= @initrd %> ks=<%= foreman_url("kickstart")%> ksdevice=bootif network kssendmac
template_kind:
name: PXELinux
id: 452984334
code: "200"
show_in_doc: 1
recorded: true
config_templates#update:
- verb: !ruby/sym PUT
path: /api/config_templates/centos5_3_pxelinux
query:
request_data:
config_template:
audit_comment: aha
template: tmp
response_data:
config_template:
name: centos5_3_pxelinux
id: 1007981701
template: tmp
snippet:
template_kind:
name: PXELinux
id: 452984334
code: "200"
show_in_doc: 1
recorded: true
- verb: !ruby/sym PUT
path: /api/config_templates/centos5_3_pxelinux
query:
request_data:
config_template:
name: ""
response_data:
config_template:
id: 1007981701
errors:
name:
- can't be blank
full_messages:
- Name can't be blank
code: "422"
show_in_doc: 0
recorded: true
- verb: !ruby/sym PUT
path: /api/config_templates/centos5_3_pxelinux
query:
request_data:
config_template:
template: blah
response_data:
config_template:
name: centos5_3_pxelinux
id: 1007981701
template: blah
snippet:
template_kind:
name: PXELinux
id: 452984334
code: "200"
show_in_doc: 0
recorded: true
dashboard#index:
- verb: !ruby/sym GET
path: /api/dashboard
query: ""
request_data:
response_data:
disabled_hosts: 0
ok_hosts: 0
good_hosts: 0
active_hosts_ok: 0
pending_hosts_enabled: 0
active_hosts_ok_enabled: 0
good_hosts_enabled: 0
active_hosts: 0
percentage: 0
out_of_sync_hosts: 0
total_hosts: 12
bad_hosts: 0
out_of_sync_hosts_enabled: 0
pending_hosts: 0
bad_hosts_enabled: 0
ok_hosts_enabled: 0
reports_missing: 12
code: "200"
show_in_doc: 1
recorded: true
domains#create:
- verb: !ruby/sym POST
path: /api/domains
query:
request_data:
domain:
name: domain.net
response_data:
domain:
name: domain.net
id: 759776764
code: "201"
show_in_doc: 1
recorded: true
- verb: !ruby/sym POST
path: /api/domains
query:
request_data:
domain:
fullname: ""
response_data:
domain:
id:
errors:
name:
- can't be blank
full_messages:
- Name can't be blank
code: "422"
show_in_doc: 0
recorded: true
domains#destroy:
- verb: !ruby/sym DELETE
path: /api/domains/mydomain.net
query: ""
request_data:
response_data:
domain:
name: mydomain.net
id: 22495316
code: "200"