crapi 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +5 -4
- data/.gitignore +3 -0
- data/.ruby-version +1 -1
- data/Gemfile.lock +120 -49
- data/README.md +2 -2
- data/crapi.gemspec +6 -6
- data/docs/CrAPI/ArgumentError.html +11 -8
- data/docs/CrAPI/BadHttpResponseError.html +11 -8
- data/docs/CrAPI/Client.html +53 -95
- data/docs/CrAPI/Error.html +10 -8
- data/docs/CrAPI/Proxy.html +30 -49
- data/docs/CrAPI.html +12 -12
- data/docs/Net/HTTP.html +12 -12
- data/docs/_index.html +9 -7
- data/docs/class_list.html +10 -7
- data/docs/css/common.css +1 -1
- data/docs/css/full_list.css +201 -53
- data/docs/css/style.css +991 -399
- data/docs/file.README.html +62 -86
- data/docs/file_list.html +9 -6
- data/docs/frames.html +10 -5
- data/docs/index.html +62 -86
- data/docs/js/app.js +799 -312
- data/docs/js/full_list.js +332 -214
- data/docs/method_list.html +9 -6
- data/docs/top-level-namespace.html +8 -6
- data/lib/crapi/version.rb +1 -1
- metadata +12 -25
- data/spec/crapi_client_spec.rb +0 -121
- data/spec/crapi_errors_spec.rb +0 -17
- data/spec/crapi_proxy_spec.rb +0 -121
- data/spec/crapi_spec.rb +0 -5
- data/spec/spec_helper.rb +0 -19
data/docs/CrAPI/Client.html
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Class: CrAPI::Client
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
9
|
+
— Documentation by YARD 0.9.44
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css">
|
|
14
14
|
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css">
|
|
16
16
|
|
|
17
17
|
<script type="text/javascript">
|
|
18
18
|
pathId = "CrAPI::Client";
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
</head>
|
|
29
29
|
<body>
|
|
30
|
+
<div id="main_progress" aria-hidden="true"></div>
|
|
31
|
+
|
|
30
32
|
<div class="nav_wrap">
|
|
31
33
|
<iframe id="nav" src="../class_list.html?1"></iframe>
|
|
32
34
|
<div id="resizer"></div>
|
|
@@ -94,7 +96,8 @@
|
|
|
94
96
|
|
|
95
97
|
<dl>
|
|
96
98
|
<dt>Defined in:</dt>
|
|
97
|
-
<dd>lib/crapi/client.rb
|
|
99
|
+
<dd>lib/crapi/client.rb
|
|
100
|
+
</dd>
|
|
98
101
|
</dl>
|
|
99
102
|
|
|
100
103
|
</div>
|
|
@@ -104,7 +107,6 @@
|
|
|
104
107
|
<p>Provides a connection mechanism, simple CRUD methods (<span class='object_link'><a href="#delete-instance_method" title="CrAPI::Client#delete (method)">#delete</a></span> / <span class='object_link'><a href="#get-instance_method" title="CrAPI::Client#get (method)">#get</a></span> / <span class='object_link'><a href="#patch-instance_method" title="CrAPI::Client#patch (method)">#patch</a></span> / <span class='object_link'><a href="#post-instance_method" title="CrAPI::Client#post (method)">#post</a></span> /
|
|
105
108
|
<span class='object_link'><a href="#put-instance_method" title="CrAPI::Client#put (method)">#put</a></span>), and proxy generators.</p>
|
|
106
109
|
|
|
107
|
-
|
|
108
110
|
</div>
|
|
109
111
|
</div>
|
|
110
112
|
<div class="tags">
|
|
@@ -124,7 +126,6 @@
|
|
|
124
126
|
<div class="discussion">
|
|
125
127
|
<p>The content-type for JSON data.</p>
|
|
126
128
|
|
|
127
|
-
|
|
128
129
|
</div>
|
|
129
130
|
</div>
|
|
130
131
|
<div class="tags">
|
|
@@ -139,7 +140,6 @@
|
|
|
139
140
|
<div class="discussion">
|
|
140
141
|
<p>The content-type for FORM data.</p>
|
|
141
142
|
|
|
142
|
-
|
|
143
143
|
</div>
|
|
144
144
|
</div>
|
|
145
145
|
<div class="tags">
|
|
@@ -178,8 +178,7 @@
|
|
|
178
178
|
|
|
179
179
|
|
|
180
180
|
|
|
181
|
-
<span class="summary_desc"><div class='inline'><p>A Hash containing headers to send with every request (unless overriden elsewhere).</p>
|
|
182
|
-
</div></span>
|
|
181
|
+
<span class="summary_desc"><div class='inline'><p>A Hash containing headers to send with every request (unless overriden elsewhere).</p></div></span>
|
|
183
182
|
|
|
184
183
|
</li>
|
|
185
184
|
|
|
@@ -214,8 +213,7 @@
|
|
|
214
213
|
|
|
215
214
|
|
|
216
215
|
|
|
217
|
-
<span class="summary_desc"><div class='inline'><p>CRUD method: DELETE.</p>
|
|
218
|
-
</div></span>
|
|
216
|
+
<span class="summary_desc"><div class='inline'><p>CRUD method: DELETE.</p></div></span>
|
|
219
217
|
|
|
220
218
|
</li>
|
|
221
219
|
|
|
@@ -237,8 +235,7 @@
|
|
|
237
235
|
|
|
238
236
|
|
|
239
237
|
|
|
240
|
-
<span class="summary_desc"><div class='inline'><p>CRUD method: GET.</p>
|
|
241
|
-
</div></span>
|
|
238
|
+
<span class="summary_desc"><div class='inline'><p>CRUD method: GET.</p></div></span>
|
|
242
239
|
|
|
243
240
|
</li>
|
|
244
241
|
|
|
@@ -262,8 +259,7 @@
|
|
|
262
259
|
|
|
263
260
|
|
|
264
261
|
|
|
265
|
-
<span class="summary_desc"><div class='inline'><p>A new instance of Client.</p>
|
|
266
|
-
</div></span>
|
|
262
|
+
<span class="summary_desc"><div class='inline'><p>A new instance of Client.</p></div></span>
|
|
267
263
|
|
|
268
264
|
</li>
|
|
269
265
|
|
|
@@ -285,8 +281,7 @@
|
|
|
285
281
|
|
|
286
282
|
|
|
287
283
|
|
|
288
|
-
<span class="summary_desc"><div class='inline'><p>Returns a new <span class='object_link'><a href="Proxy.html" title="CrAPI::Proxy (class)">CrAPI::Proxy</a></span> for this client.</p>
|
|
289
|
-
</div></span>
|
|
284
|
+
<span class="summary_desc"><div class='inline'><p>Returns a new <span class='object_link'><a href="Proxy.html" title="CrAPI::Proxy (class)">CrAPI::Proxy</a></span> for this client.</p></div></span>
|
|
290
285
|
|
|
291
286
|
</li>
|
|
292
287
|
|
|
@@ -308,8 +303,7 @@
|
|
|
308
303
|
|
|
309
304
|
|
|
310
305
|
|
|
311
|
-
<span class="summary_desc"><div class='inline'><p>CRUD method: PATCH.</p>
|
|
312
|
-
</div></span>
|
|
306
|
+
<span class="summary_desc"><div class='inline'><p>CRUD method: PATCH.</p></div></span>
|
|
313
307
|
|
|
314
308
|
</li>
|
|
315
309
|
|
|
@@ -331,8 +325,7 @@
|
|
|
331
325
|
|
|
332
326
|
|
|
333
327
|
|
|
334
|
-
<span class="summary_desc"><div class='inline'><p>CRUD method: POST.</p>
|
|
335
|
-
</div></span>
|
|
328
|
+
<span class="summary_desc"><div class='inline'><p>CRUD method: POST.</p></div></span>
|
|
336
329
|
|
|
337
330
|
</li>
|
|
338
331
|
|
|
@@ -354,13 +347,13 @@
|
|
|
354
347
|
|
|
355
348
|
|
|
356
349
|
|
|
357
|
-
<span class="summary_desc"><div class='inline'><p>CRUD method: PUT.</p>
|
|
358
|
-
</div></span>
|
|
350
|
+
<span class="summary_desc"><div class='inline'><p>CRUD method: PUT.</p></div></span>
|
|
359
351
|
|
|
360
352
|
</li>
|
|
361
353
|
|
|
362
354
|
|
|
363
355
|
</ul>
|
|
356
|
+
|
|
364
357
|
|
|
365
358
|
|
|
366
359
|
<div id="constructor_details" class="method_details_list">
|
|
@@ -379,7 +372,6 @@
|
|
|
379
372
|
<div class="discussion">
|
|
380
373
|
<p>Returns a new instance of Client.</p>
|
|
381
374
|
|
|
382
|
-
|
|
383
375
|
</div>
|
|
384
376
|
</div>
|
|
385
377
|
<div class="tags">
|
|
@@ -397,8 +389,7 @@
|
|
|
397
389
|
|
|
398
390
|
—
|
|
399
391
|
<div class='inline'><p>The base URI the client should use for determining the host to connect to, determining
|
|
400
|
-
whether SSH is applicable, and setting the base path for subsequent CRUD calls.</p>
|
|
401
|
-
</div>
|
|
392
|
+
whether SSH is applicable, and setting the base path for subsequent CRUD calls.</p></div>
|
|
402
393
|
|
|
403
394
|
</li>
|
|
404
395
|
|
|
@@ -414,8 +405,7 @@ whether SSH is applicable, and setting the base path for subsequent CRUD calls.<
|
|
|
414
405
|
|
|
415
406
|
|
|
416
407
|
—
|
|
417
|
-
<div class='inline'><p>Method options. All method options are <strong>optional</strong> in this particular case.</p>
|
|
418
|
-
</div>
|
|
408
|
+
<div class='inline'><p>Method options. All method options are <strong>optional</strong> in this particular case.</p></div>
|
|
419
409
|
|
|
420
410
|
</li>
|
|
421
411
|
|
|
@@ -436,9 +426,8 @@ whether SSH is applicable, and setting the base path for subsequent CRUD calls.<
|
|
|
436
426
|
|
|
437
427
|
</span>
|
|
438
428
|
|
|
439
|
-
— <div class='inline'><p>Whether to allow insecure SSH connections (i.e. don
|
|
440
|
-
given certificate).</p>
|
|
441
|
-
</div>
|
|
429
|
+
— <div class='inline'><p>Whether to allow insecure SSH connections (i.e. don't attempt to verify the validity of the
|
|
430
|
+
given certificate).</p></div>
|
|
442
431
|
|
|
443
432
|
</li>
|
|
444
433
|
|
|
@@ -450,8 +439,7 @@ given certificate).</p>
|
|
|
450
439
|
</span>
|
|
451
440
|
|
|
452
441
|
— <div class='inline'><p>The DNS name or IP address of a proxy server to use when connecting to the target system.
|
|
453
|
-
Maps to <code>Net::HTTP#new</code
|
|
454
|
-
</div>
|
|
442
|
+
Maps to <code>Net::HTTP#new</code>'s <em>p_addr</em>.</p></div>
|
|
455
443
|
|
|
456
444
|
</li>
|
|
457
445
|
|
|
@@ -463,8 +451,7 @@ Maps to <code>Net::HTTP#new</code>’s <em>p_addr</em>.</p>
|
|
|
463
451
|
</span>
|
|
464
452
|
|
|
465
453
|
— <div class='inline'><p>The proxy server port to use when connecting to the target system.
|
|
466
|
-
Maps to <code>Net::HTTP#new</code
|
|
467
|
-
</div>
|
|
454
|
+
Maps to <code>Net::HTTP#new</code>'s <em>p_port</em>.</p></div>
|
|
468
455
|
|
|
469
456
|
</li>
|
|
470
457
|
|
|
@@ -476,8 +463,7 @@ Maps to <code>Net::HTTP#new</code>’s <em>p_port</em>.</p>
|
|
|
476
463
|
</span>
|
|
477
464
|
|
|
478
465
|
— <div class='inline'><p>The username to give if authorization is required to access the specified proxy host.
|
|
479
|
-
Maps to <code>Net::HTTP#new</code
|
|
480
|
-
</div>
|
|
466
|
+
Maps to <code>Net::HTTP#new</code>'s <em>p_user</em>.</p></div>
|
|
481
467
|
|
|
482
468
|
</li>
|
|
483
469
|
|
|
@@ -489,8 +475,7 @@ Maps to <code>Net::HTTP#new</code>’s <em>p_user</em>.</p>
|
|
|
489
475
|
</span>
|
|
490
476
|
|
|
491
477
|
— <div class='inline'><p>The password to give if authorization is required to access the specified proxy host.
|
|
492
|
-
Maps to <code>Net::HTTP#new</code
|
|
493
|
-
</div>
|
|
478
|
+
Maps to <code>Net::HTTP#new</code>'s <em>p_pass</em>.</p></div>
|
|
494
479
|
|
|
495
480
|
</li>
|
|
496
481
|
|
|
@@ -583,10 +568,9 @@ Maps to <code>Net::HTTP#new</code>’s <em>p_pass</em>.</p>
|
|
|
583
568
|
</h3><div class="docstring">
|
|
584
569
|
<div class="discussion">
|
|
585
570
|
<p>A Hash containing headers to send with every request (unless overriden elsewhere). Headers
|
|
586
|
-
set by the user via the CRUD methods
|
|
571
|
+
set by the user via the CRUD methods' <em>headers</em> still override any conflicting default
|
|
587
572
|
header.</p>
|
|
588
573
|
|
|
589
|
-
|
|
590
574
|
</div>
|
|
591
575
|
</div>
|
|
592
576
|
<div class="tags">
|
|
@@ -633,7 +617,6 @@ header.</p>
|
|
|
633
617
|
<div class="discussion">
|
|
634
618
|
<p>CRUD method: DELETE</p>
|
|
635
619
|
|
|
636
|
-
|
|
637
620
|
</div>
|
|
638
621
|
</div>
|
|
639
622
|
<div class="tags">
|
|
@@ -651,8 +634,7 @@ header.</p>
|
|
|
651
634
|
|
|
652
635
|
—
|
|
653
636
|
<div class='inline'><p>The path to the resource to DELETE. Note that this path is always interpreted as relative
|
|
654
|
-
to the client
|
|
655
|
-
</div>
|
|
637
|
+
to the client's base_uri's path, regardless of whether it begins with a "/".</p></div>
|
|
656
638
|
|
|
657
639
|
</li>
|
|
658
640
|
|
|
@@ -668,9 +650,8 @@ to the client’s base_uri’s path, regardless of whether it begins with a “/
|
|
|
668
650
|
|
|
669
651
|
|
|
670
652
|
—
|
|
671
|
-
<div class='inline'><p>Additional headers to set in addition to the client
|
|
672
|
-
also appearing in the client
|
|
673
|
-
</div>
|
|
653
|
+
<div class='inline'><p>Additional headers to set in addition to the client's defaults. Any header given here and
|
|
654
|
+
also appearing in the client's defaults will override said default value.</p></div>
|
|
674
655
|
|
|
675
656
|
</li>
|
|
676
657
|
|
|
@@ -687,8 +668,7 @@ also appearing in the client’s defaults will override said default value.</p>
|
|
|
687
668
|
|
|
688
669
|
—
|
|
689
670
|
<div class='inline'><p>Query string values, if any, to append to the given path. Strings are appended as-is;
|
|
690
|
-
Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
691
|
-
</div>
|
|
671
|
+
Hashes and Arrays are serialized as URI-encoded form data before appending.</p></div>
|
|
692
672
|
|
|
693
673
|
</li>
|
|
694
674
|
|
|
@@ -750,7 +730,6 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
750
730
|
<div class="discussion">
|
|
751
731
|
<p>CRUD method: GET</p>
|
|
752
732
|
|
|
753
|
-
|
|
754
733
|
</div>
|
|
755
734
|
</div>
|
|
756
735
|
<div class="tags">
|
|
@@ -768,8 +747,7 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
768
747
|
|
|
769
748
|
—
|
|
770
749
|
<div class='inline'><p>The path to the resource to GET. Note that this path is always interpreted as relative to
|
|
771
|
-
the client
|
|
772
|
-
</div>
|
|
750
|
+
the client's base_uri's path, regardless of whether it begins with a "/".</p></div>
|
|
773
751
|
|
|
774
752
|
</li>
|
|
775
753
|
|
|
@@ -785,9 +763,8 @@ the client’s base_uri’s path, regardless of whether it begins with a “/”
|
|
|
785
763
|
|
|
786
764
|
|
|
787
765
|
—
|
|
788
|
-
<div class='inline'><p>Additional headers to set in addition to the client
|
|
789
|
-
also appearing in the client
|
|
790
|
-
</div>
|
|
766
|
+
<div class='inline'><p>Additional headers to set in addition to the client's defaults. Any header given here and
|
|
767
|
+
also appearing in the client's defaults will override said default value.</p></div>
|
|
791
768
|
|
|
792
769
|
</li>
|
|
793
770
|
|
|
@@ -804,8 +781,7 @@ also appearing in the client’s defaults will override said default value.</p>
|
|
|
804
781
|
|
|
805
782
|
—
|
|
806
783
|
<div class='inline'><p>Query string values, if any, to append to the given path. Strings are appended as-is;
|
|
807
|
-
Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
808
|
-
</div>
|
|
784
|
+
Hashes and Arrays are serialized as URI-encoded form data before appending.</p></div>
|
|
809
785
|
|
|
810
786
|
</li>
|
|
811
787
|
|
|
@@ -867,7 +843,6 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
867
843
|
<div class="discussion">
|
|
868
844
|
<p>Returns a new <span class='object_link'><a href="Proxy.html" title="CrAPI::Proxy (class)">CrAPI::Proxy</a></span> for this client.</p>
|
|
869
845
|
|
|
870
|
-
|
|
871
846
|
</div>
|
|
872
847
|
</div>
|
|
873
848
|
<div class="tags">
|
|
@@ -886,8 +861,7 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
886
861
|
|
|
887
862
|
|
|
888
863
|
—
|
|
889
|
-
<div class='inline'><p>The segment to add to this client
|
|
890
|
-
</div>
|
|
864
|
+
<div class='inline'><p>The segment to add to this client's path.</p></div>
|
|
891
865
|
|
|
892
866
|
</li>
|
|
893
867
|
|
|
@@ -903,8 +877,7 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
903
877
|
|
|
904
878
|
|
|
905
879
|
—
|
|
906
|
-
<div class='inline'><p>The default headers for the new proxy.</p>
|
|
907
|
-
</div>
|
|
880
|
+
<div class='inline'><p>The default headers for the new proxy.</p></div>
|
|
908
881
|
|
|
909
882
|
</li>
|
|
910
883
|
|
|
@@ -958,7 +931,6 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
958
931
|
<div class="discussion">
|
|
959
932
|
<p>CRUD method: PATCH</p>
|
|
960
933
|
|
|
961
|
-
|
|
962
934
|
</div>
|
|
963
935
|
</div>
|
|
964
936
|
<div class="tags">
|
|
@@ -976,8 +948,7 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
976
948
|
|
|
977
949
|
—
|
|
978
950
|
<div class='inline'><p>The path to the resource to PATCH. Note that this path is always interpreted as relative to
|
|
979
|
-
the client
|
|
980
|
-
</div>
|
|
951
|
+
the client's base_uri's path, regardless of whether it begins with a "/".</p></div>
|
|
981
952
|
|
|
982
953
|
</li>
|
|
983
954
|
|
|
@@ -993,9 +964,8 @@ the client’s base_uri’s path, regardless of whether it begins with a “/”
|
|
|
993
964
|
|
|
994
965
|
|
|
995
966
|
—
|
|
996
|
-
<div class='inline'><p>Additional headers to set in addition to the client
|
|
997
|
-
also appearing in the client
|
|
998
|
-
</div>
|
|
967
|
+
<div class='inline'><p>Additional headers to set in addition to the client's defaults. Any header given here and
|
|
968
|
+
also appearing in the client's defaults will override said default value.</p></div>
|
|
999
969
|
|
|
1000
970
|
</li>
|
|
1001
971
|
|
|
@@ -1012,8 +982,7 @@ also appearing in the client’s defaults will override said default value.</p>
|
|
|
1012
982
|
|
|
1013
983
|
—
|
|
1014
984
|
<div class='inline'><p>Query string values, if any, to append to the given path. Strings are appended as-is;
|
|
1015
|
-
Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
1016
|
-
</div>
|
|
985
|
+
Hashes and Arrays are serialized as URI-encoded form data before appending.</p></div>
|
|
1017
986
|
|
|
1018
987
|
</li>
|
|
1019
988
|
|
|
@@ -1030,8 +999,7 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
1030
999
|
|
|
1031
1000
|
—
|
|
1032
1001
|
<div class='inline'><p>The payload to send, if any. Strings are used as-is; Hashes are serialized per the
|
|
1033
|
-
request
|
|
1034
|
-
</div>
|
|
1002
|
+
request's "Content-Type" header.</p></div>
|
|
1035
1003
|
|
|
1036
1004
|
</li>
|
|
1037
1005
|
|
|
@@ -1095,7 +1063,6 @@ request’s “Content-Type” header.</p>
|
|
|
1095
1063
|
<div class="discussion">
|
|
1096
1064
|
<p>CRUD method: POST</p>
|
|
1097
1065
|
|
|
1098
|
-
|
|
1099
1066
|
</div>
|
|
1100
1067
|
</div>
|
|
1101
1068
|
<div class="tags">
|
|
@@ -1113,8 +1080,7 @@ request’s “Content-Type” header.</p>
|
|
|
1113
1080
|
|
|
1114
1081
|
—
|
|
1115
1082
|
<div class='inline'><p>The path to the resource to POST. Note that this path is always interpreted as relative to
|
|
1116
|
-
the client
|
|
1117
|
-
</div>
|
|
1083
|
+
the client's base_uri's path, regardless of whether it begins with a "/".</p></div>
|
|
1118
1084
|
|
|
1119
1085
|
</li>
|
|
1120
1086
|
|
|
@@ -1130,9 +1096,8 @@ the client’s base_uri’s path, regardless of whether it begins with a “/”
|
|
|
1130
1096
|
|
|
1131
1097
|
|
|
1132
1098
|
—
|
|
1133
|
-
<div class='inline'><p>Additional headers to set in addition to the client
|
|
1134
|
-
also appearing in the client
|
|
1135
|
-
</div>
|
|
1099
|
+
<div class='inline'><p>Additional headers to set in addition to the client's defaults. Any header given here and
|
|
1100
|
+
also appearing in the client's defaults will override said default value.</p></div>
|
|
1136
1101
|
|
|
1137
1102
|
</li>
|
|
1138
1103
|
|
|
@@ -1149,8 +1114,7 @@ also appearing in the client’s defaults will override said default value.</p>
|
|
|
1149
1114
|
|
|
1150
1115
|
—
|
|
1151
1116
|
<div class='inline'><p>Query string values, if any, to append to the given path. Strings are appended as-is;
|
|
1152
|
-
Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
1153
|
-
</div>
|
|
1117
|
+
Hashes and Arrays are serialized as URI-encoded form data before appending.</p></div>
|
|
1154
1118
|
|
|
1155
1119
|
</li>
|
|
1156
1120
|
|
|
@@ -1167,8 +1131,7 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
1167
1131
|
|
|
1168
1132
|
—
|
|
1169
1133
|
<div class='inline'><p>The payload to send, if any. Strings are used as-is; Hashes are serialized per the
|
|
1170
|
-
request
|
|
1171
|
-
</div>
|
|
1134
|
+
request's "Content-Type" header.</p></div>
|
|
1172
1135
|
|
|
1173
1136
|
</li>
|
|
1174
1137
|
|
|
@@ -1232,7 +1195,6 @@ request’s “Content-Type” header.</p>
|
|
|
1232
1195
|
<div class="discussion">
|
|
1233
1196
|
<p>CRUD method: PUT</p>
|
|
1234
1197
|
|
|
1235
|
-
|
|
1236
1198
|
</div>
|
|
1237
1199
|
</div>
|
|
1238
1200
|
<div class="tags">
|
|
@@ -1250,8 +1212,7 @@ request’s “Content-Type” header.</p>
|
|
|
1250
1212
|
|
|
1251
1213
|
—
|
|
1252
1214
|
<div class='inline'><p>The path to the resource to PATCH. Note that this path is always interpreted as relative to
|
|
1253
|
-
the client
|
|
1254
|
-
</div>
|
|
1215
|
+
the client's base_uri's path, regardless of whether it begins with a "/".</p></div>
|
|
1255
1216
|
|
|
1256
1217
|
</li>
|
|
1257
1218
|
|
|
@@ -1267,9 +1228,8 @@ the client’s base_uri’s path, regardless of whether it begins with a “/”
|
|
|
1267
1228
|
|
|
1268
1229
|
|
|
1269
1230
|
—
|
|
1270
|
-
<div class='inline'><p>Additional headers to set in addition to the client
|
|
1271
|
-
also appearing in the client
|
|
1272
|
-
</div>
|
|
1231
|
+
<div class='inline'><p>Additional headers to set in addition to the client's defaults. Any header given here and
|
|
1232
|
+
also appearing in the client's defaults will override said default value.</p></div>
|
|
1273
1233
|
|
|
1274
1234
|
</li>
|
|
1275
1235
|
|
|
@@ -1286,8 +1246,7 @@ also appearing in the client’s defaults will override said default value.</p>
|
|
|
1286
1246
|
|
|
1287
1247
|
—
|
|
1288
1248
|
<div class='inline'><p>Query string values, if any, to append to the given path. Strings are appended as-is;
|
|
1289
|
-
Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
1290
|
-
</div>
|
|
1249
|
+
Hashes and Arrays are serialized as URI-encoded form data before appending.</p></div>
|
|
1291
1250
|
|
|
1292
1251
|
</li>
|
|
1293
1252
|
|
|
@@ -1304,8 +1263,7 @@ Hashes and Arrays are serialized as URI-encoded form data before appending.</p>
|
|
|
1304
1263
|
|
|
1305
1264
|
—
|
|
1306
1265
|
<div class='inline'><p>The payload to send, if any. Strings are used as-is; Hashes are serialized per the
|
|
1307
|
-
request
|
|
1308
|
-
</div>
|
|
1266
|
+
request's "Content-Type" header.</p></div>
|
|
1309
1267
|
|
|
1310
1268
|
</li>
|
|
1311
1269
|
|
|
@@ -1361,11 +1319,11 @@ request’s “Content-Type” header.</p>
|
|
|
1361
1319
|
</div>
|
|
1362
1320
|
|
|
1363
1321
|
<div id="footer">
|
|
1364
|
-
Generated on
|
|
1322
|
+
Generated on Sun Jul 5 14:46:38 2026 by
|
|
1365
1323
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1366
|
-
0.9.
|
|
1324
|
+
0.9.44 (ruby-3.4.8).
|
|
1367
1325
|
</div>
|
|
1368
1326
|
|
|
1369
1327
|
</div>
|
|
1370
1328
|
</body>
|
|
1371
|
-
</html>
|
|
1329
|
+
</html>
|
data/docs/CrAPI/Error.html
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<title>
|
|
7
7
|
Exception: CrAPI::Error
|
|
8
8
|
|
|
9
|
-
— Documentation by YARD 0.9.
|
|
9
|
+
— Documentation by YARD 0.9.44
|
|
10
10
|
|
|
11
11
|
</title>
|
|
12
12
|
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css"
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css">
|
|
14
14
|
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css"
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css">
|
|
16
16
|
|
|
17
17
|
<script type="text/javascript">
|
|
18
18
|
pathId = "CrAPI::Error";
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
|
|
28
28
|
</head>
|
|
29
29
|
<body>
|
|
30
|
+
<div id="main_progress" aria-hidden="true"></div>
|
|
31
|
+
|
|
30
32
|
<div class="nav_wrap">
|
|
31
33
|
<iframe id="nav" src="../class_list.html?1"></iframe>
|
|
32
34
|
<div id="resizer"></div>
|
|
@@ -96,7 +98,8 @@
|
|
|
96
98
|
|
|
97
99
|
<dl>
|
|
98
100
|
<dt>Defined in:</dt>
|
|
99
|
-
<dd>lib/crapi/errors.rb
|
|
101
|
+
<dd>lib/crapi/errors.rb
|
|
102
|
+
</dd>
|
|
100
103
|
</dl>
|
|
101
104
|
|
|
102
105
|
</div>
|
|
@@ -105,7 +108,6 @@
|
|
|
105
108
|
<div class="discussion">
|
|
106
109
|
<p>The base Error class for all <span class='object_link'><a href="../CrAPI.html" title="CrAPI (module)">CrAPI</a></span>-related issues.</p>
|
|
107
110
|
|
|
108
|
-
|
|
109
111
|
</div>
|
|
110
112
|
</div>
|
|
111
113
|
<div class="tags">
|
|
@@ -128,11 +130,11 @@
|
|
|
128
130
|
</div>
|
|
129
131
|
|
|
130
132
|
<div id="footer">
|
|
131
|
-
Generated on
|
|
133
|
+
Generated on Sun Jul 5 14:46:38 2026 by
|
|
132
134
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
133
|
-
0.9.
|
|
135
|
+
0.9.44 (ruby-3.4.8).
|
|
134
136
|
</div>
|
|
135
137
|
|
|
136
138
|
</div>
|
|
137
139
|
</body>
|
|
138
|
-
</html>
|
|
140
|
+
</html>
|