forked from mobtexting/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
collection.json
4321 lines (4321 loc) · 134 KB
/
collection.json
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
{
"info": {
"name": "Postman Echo",
"_postman_id": "c98f07d8-6635-4204-bcce-674a35f81e69",
"description": "Postman Echo is service you can use to test your REST clients and make sample API calls. It provides endpoints for `GET`, `POST`, `PUT`, various auth mechanisms and other utility endpoints.\n\nThe documentation for the endpoints as well as example responses can be found at [https://postman-echo.com](https://postman-echo.com/?source=echo-collection-app-onboarding)",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Request Methods",
"description": "HTTP has multiple request \"verbs\", such as `GET`, `PUT`, `POST`, `DELETE`,\n`PATCH`, `HEAD`, etc. \n\nAn HTTP Method (verb) defines how a request should be interpreted by a server. \nThe endpoints in this section demonstrate various HTTP Verbs. Postman supports \nall the HTTP Verbs, including some rarely used ones, such as `PROPFIND`, `UNLINK`, \netc.\n\nFor details about HTTP Verbs, refer to [RFC 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9)\n",
"item": [
{
"name": "GET Request",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response body has json with request queries\", function () {",
" pm.response.to.have.jsonBody('args.foo1', 'bar1')",
" .and.have.jsonBody('args.foo2', 'bar2');",
"});"
]
}
}
],
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://postman-echo.com/get?foo1=bar1&foo2=bar2",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"get"
],
"query": [
{
"key": "foo1",
"value": "bar1",
"equals": true
},
{
"key": "foo2",
"value": "bar2",
"equals": true
}
]
},
"description": "The HTTP `GET` request method is meant to retrieve data from a server. The data\nis identified by a unique URI (Uniform Resource Identifier). \n\nA `GET` request can pass parameters to the server using \"Query String \nParameters\". For example, in the following request,\n\n> http://example.com/hi/there?hand=wave\n\nThe parameter \"hand\" has the value \"wave\".\n\nThis endpoint echoes the HTTP headers, request parameters and the complete\nURI requested."
},
"response": []
},
{
"name": "POST Raw Text",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response body has json with request body\", function () {",
" pm.response.to.have.jsonBody('data', ",
" 'This is expected to be sent back as part of response body.');",
"});"
]
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "This is expected to be sent back as part of response body."
},
"url": {
"raw": "https://postman-echo.com/post",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"post"
]
},
"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested."
},
"response": []
},
{
"name": "POST Form Data",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response body has json with form data\", function () {",
" pm.response.to.have.jsonBody('form.foo1', 'bar1')",
" .and.have.jsonBody('form.foo2', 'bar2');",
"});"
]
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "foo1",
"value": "bar1",
"type": "text"
},
{
"key": "foo2",
"value": "bar2",
"description": "",
"type": "text"
}
]
},
"url": {
"raw": "https://postman-echo.com/post",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"post"
]
},
"description": "The HTTP `POST` request method is meant to transfer data to a server \n(and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `POST` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following request,\n\n> POST /hi/there?hand=wave\n>\n> <request-body>\n\nThe parameter \"hand\" has the value \"wave\". The request body can be in multiple\nformats. These formats are defined by the MIME type of the request. The MIME \nType can be set using the ``Content-Type`` HTTP header. The most commonly used \nMIME types are:\n\n* `multipart/form-data`\n* `application/x-www-form-urlencoded`\n* `application/json`\n\nThis endpoint echoes the HTTP headers, request parameters, the contents of\nthe request body and the complete URI requested when data is sent as a form parameter."
},
"response": []
},
{
"name": "PUT Request",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response body has json with form data\", function () {",
" pm.response.to.have.jsonBody('data', ",
" 'This is expected to be sent back as part of response body.');",
"});"
]
}
}
],
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "This is expected to be sent back as part of response body."
},
"url": {
"raw": "https://postman-echo.com/put",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"put"
]
},
"description": "The HTTP `PUT` request method is similar to HTTP `POST`. It too is meant to \ntransfer data to a server (and elicit a response). What data is returned depends on the implementation\nof the server.\n\nA `PUT` request can pass parameters to the server using \"Query String \nParameters\", as well as the Request Body. For example, in the following \nraw HTTP request,\n\n> PUT /hi/there?hand=wave\n>\n> <request-body>\n\n\n"
},
"response": []
},
{
"name": "PATCH Request",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response body has json with form data\", function () {",
" pm.response.to.have.jsonBody('data', ",
" 'This is expected to be sent back as part of response body.');",
"});"
]
}
}
],
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "This is expected to be sent back as part of response body."
},
"url": {
"raw": "https://postman-echo.com/patch",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"patch"
]
},
"description": "The HTTP `PATCH` method is used to update resources on a server. The exact\nuse of `PATCH` requests depends on the server in question. There are a number\nof server implementations which handle `PATCH` differently. Technically, \n`PATCH` supports both Query String parameters and a Request Body.\n\nThis endpoint accepts an HTTP `PATCH` request and provides debug information\nsuch as the HTTP headers, Query String arguments, and the Request Body."
},
"response": []
},
{
"name": "DELETE Request",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response body has json with form data\", function () {",
" pm.response.to.have.jsonBody('data', ",
" 'This is expected to be sent back as part of response body.');",
"});"
]
}
}
],
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "This is expected to be sent back as part of response body."
},
"url": {
"raw": "https://postman-echo.com/delete",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"delete"
]
},
"description": "The HTTP `DELETE` method is used to delete resources on a server. The exact\nuse of `DELETE` requests depends on the server implementation. In general, \n`DELETE` requests support both, Query String parameters as well as a Request \nBody.\n\nThis endpoint accepts an HTTP `DELETE` request and provides debug information\nsuch as the HTTP headers, Query String arguments, and the Request Body."
},
"response": []
}
]
},
{
"name": "Headers",
"description": "The following set of endpoints allow one to see the headers being sent as part of a request and to get a custom set of headers as part of response.\n\nHTTP header fields provide required information about the request or response, or about the object sent in the message body. Both request headers and response headers can be controlled using these endpoints.",
"item": [
{
"name": "Request Headers",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"// we check to ensire that the headers we sent as request is returned as part of",
"// the response body. if you change the request headers, make sure to add them",
"// to the tests here",
"pm.test(\"sample request header should be returned in response body\", function () {",
" pm.response.to.have.jsonBody('headers.my-sample-header', 'Lorem ipsum dolor sit amet');",
"});"
]
}
}
],
"request": {
"method": "GET",
"header": [
{
"key": "my-sample-header",
"value": "Lorem ipsum dolor sit amet"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://postman-echo.com/headers",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"headers"
]
},
"description": "A `GET` request to this endpoint returns the list of all request headers as part of the response JSON.\nIn Postman, sending your own set of headers through the [Headers tab](https://www.getpostman.com/docs/requests#headers?source=echo-collection-app-onboarding) will reveal the headers as part of the response."
},
"response": [
{
"id": "762c31a3-74f2-4443-8463-5154b97b78e8",
"name": "my-sample-header",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "my-sample-header",
"value": "Lorem ipsum dolor sit amet"
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://echo.getpostman.com/headers",
"protocol": "https",
"host": [
"echo",
"getpostman",
"com"
],
"path": [
"headers"
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "javascript",
"header": [
{
"name": "Access-Control-Allow-Credentials",
"key": "Access-Control-Allow-Credentials",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Headers",
"key": "Access-Control-Allow-Headers",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Methods",
"key": "Access-Control-Allow-Methods",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Origin",
"key": "Access-Control-Allow-Origin",
"value": "",
"description": ""
},
{
"name": "Connection",
"key": "Connection",
"value": "keep-alive",
"description": ""
},
{
"name": "Content-Encoding",
"key": "Content-Encoding",
"value": "gzip",
"description": ""
},
{
"name": "Content-Length",
"key": "Content-Length",
"value": "342",
"description": ""
},
{
"name": "Content-Type",
"key": "Content-Type",
"value": "application/json; charset=utf-8",
"description": ""
},
{
"name": "Date",
"key": "Date",
"value": "Thu, 31 Mar 2016 11:14:00 GMT",
"description": ""
},
{
"name": "Server",
"key": "Server",
"value": "nginx/1.6.2",
"description": ""
},
{
"name": "Vary",
"key": "Vary",
"value": "Accept-Encoding",
"description": ""
},
{
"name": "X-Powered-By",
"key": "X-Powered-By",
"value": "Sails <sailsjs.org>",
"description": ""
}
],
"cookie": [
{
"expires": "Invalid Date",
"hostOnly": true,
"httpOnly": true,
"domain": "echo.getpostman.com",
"path": "/",
"secure": false,
"session": true,
"value": "s%3A9stja5zKmIILxq9Jvtha7Lp9LIz1VIdK.Vp8MHC%2BEUJe4ICZPXn2JAoXaV2bTgtoQd%2B3XJLNr51Y",
"key": "sails.sid"
}
],
"body": "{\"headers\":{\"host\":\"echo.getpostman.com\",\"accept\":\"*/*\",\"accept-encoding\":\"gzip, deflate, sdch\",\"accept-language\":\"en-US,en;q=0.8\",\"cache-control\":\"no-cache\",\"my-sample-header\":\"Lorem ipsum dolor sit amet\",\"postman-token\":\"3c8ea80b-f599-fba6-e0b4-a0910440e7b6\",\"user-agent\":\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36\",\"x-forwarded-port\":\"443\",\"x-forwarded-proto\":\"https\"}}"
}
]
},
{
"name": "Response Headers",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response has the headers sent as part of request query\", function () {",
" pm.response.to.have.header('foo1', 'bar1')",
" .and.have.header('foo2', 'bar2');",
"});",
"",
"pm.test(\"sample request param should be returned in response body\", function () {",
" pm.response.to.have.jsonBody('foo1', 'bar1')",
" .and.have.jsonBody('foo2', 'bar2');",
"});"
]
}
}
],
"request": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://postman-echo.com/response-headers?foo1=bar1&foo2=bar2",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"response-headers"
],
"query": [
{
"key": "foo1",
"value": "bar1",
"equals": true
},
{
"key": "foo2",
"value": "bar2",
"equals": true
}
]
},
"description": "This endpoint causes the server to send custom set of response headers. Providing header values as part of the URL parameters of a `GET` request to this endpoint returns the same as part of response header.\n\nTo send your own set of headers, simply add or replace the the URL parameters with your own set."
},
"response": [
{
"id": "d69a3b00-d801-4ec1-8099-93edba8e7f63",
"name": "Response headers",
"originalRequest": {
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://echo.getpostman.com/response-headers?Content-Type=text/html&test=response_headers",
"protocol": "https",
"host": [
"echo",
"getpostman",
"com"
],
"path": [
"response-headers"
],
"query": [
{
"key": "Content-Type",
"value": "text/html"
},
{
"key": "test",
"value": "response_headers"
}
]
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "html",
"header": [
{
"name": "Access-Control-Allow-Credentials",
"key": "Access-Control-Allow-Credentials",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Headers",
"key": "Access-Control-Allow-Headers",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Methods",
"key": "Access-Control-Allow-Methods",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Origin",
"key": "Access-Control-Allow-Origin",
"value": "",
"description": ""
},
{
"name": "Connection",
"key": "Connection",
"value": "keep-alive",
"description": ""
},
{
"name": "Content-Encoding",
"key": "Content-Encoding",
"value": "gzip",
"description": ""
},
{
"name": "Content-Length",
"key": "Content-Length",
"value": "71",
"description": ""
},
{
"name": "Content-Type",
"key": "Content-Type",
"value": "text/html; charset=utf-8",
"description": ""
},
{
"name": "Date",
"key": "Date",
"value": "Thu, 31 Mar 2016 11:14:18 GMT",
"description": ""
},
{
"name": "Server",
"key": "Server",
"value": "nginx/1.6.2",
"description": ""
},
{
"name": "Vary",
"key": "Vary",
"value": "Accept-Encoding",
"description": ""
},
{
"name": "X-Powered-By",
"key": "X-Powered-By",
"value": "Sails <sailsjs.org>",
"description": ""
},
{
"name": "test",
"key": "test",
"value": "response_headers",
"description": ""
}
],
"cookie": [
{
"expires": "Invalid Date",
"hostOnly": true,
"httpOnly": true,
"domain": "echo.getpostman.com",
"path": "/",
"secure": false,
"session": true,
"value": "s%3A9stja5zKmIILxq9Jvtha7Lp9LIz1VIdK.Vp8MHC%2BEUJe4ICZPXn2JAoXaV2bTgtoQd%2B3XJLNr51Y",
"key": "sails.sid"
}
],
"body": "{\"Content-Type\":\"text/html\",\"test\":\"response_headers\"}"
}
]
}
]
},
{
"name": "Authentication Methods",
"description": "",
"item": [
{
"name": "Basic Auth",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test(\"response is ok\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"response body has json saying 'authenticated'\", function () {",
" pm.response.to.have.jsonBody('authenticated', true);",
"});"
]
}
}
],
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "username",
"value": "postman",
"type": "string"
},
{
"key": "password",
"value": "password",
"type": "string"
},
{
"key": "saveHelperData",
"type": "any"
},
{
"key": "showPassword",
"value": false,
"type": "boolean"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://postman-echo.com/basic-auth",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"basic-auth"
]
},
"description": "This endpoint simulates a **basic-auth** protected endpoint. \nThe endpoint accepts a default username and password and returns a status code of `200 ok` only if the same is provided. \nOtherwise it will return a status code `401 unauthorized`.\n\n> Username: `postman`\n> \n> Password: `password`\n\nTo use this endpoint, send a request with the header `Authorization: Basic cG9zdG1hbjpwYXNzd29yZA==`. \nThe cryptic latter half of the header value is a base64 encoded concatenation of the default username and password. \nUsing Postman, to send this request, you can simply fill in the username and password in the \"Authorization\" tab and Postman will do the rest for you.\n\nTo know more about basic authentication, refer to the [Basic Access Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication) wikipedia article.\nThe article on [authentication helpers](https://www.getpostman.com/docs/helpers#basic-auth?source=echo-collection-app-onboarding) elaborates how to use the same within the Postman app."
},
"response": [
{
"id": "f1fc4ec7-c90e-44d3-98ed-b898a58a08a0",
"name": "200",
"originalRequest": {
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": ""
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "javascript",
"header": [
{
"name": "Access-Control-Allow-Credentials",
"key": "Access-Control-Allow-Credentials",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Headers",
"key": "Access-Control-Allow-Headers",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Methods",
"key": "Access-Control-Allow-Methods",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Origin",
"key": "Access-Control-Allow-Origin",
"value": "",
"description": ""
},
{
"name": "Connection",
"key": "Connection",
"value": "keep-alive",
"description": ""
},
{
"name": "Content-Encoding",
"key": "Content-Encoding",
"value": "gzip",
"description": ""
},
{
"name": "Content-Length",
"key": "Content-Length",
"value": "42",
"description": ""
},
{
"name": "Content-Type",
"key": "Content-Type",
"value": "application/json; charset=utf-8",
"description": ""
},
{
"name": "Date",
"key": "Date",
"value": "Sat, 31 Oct 2015 06:38:25 GMT",
"description": ""
},
{
"name": "Server",
"key": "Server",
"value": "nginx/1.6.2",
"description": ""
},
{
"name": "Vary",
"key": "Vary",
"value": "Accept-Encoding",
"description": ""
},
{
"name": "X-Powered-By",
"key": "X-Powered-By",
"value": "Sails <sailsjs.org>",
"description": ""
}
],
"cookie": [],
"body": "{\"authenticated\":true}"
}
]
},
{
"name": "DigestAuth Success",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"tests[\"response code is 200\"] = responseCode.code === 200;",
"tests[\"body contains authenticated\"] = responseBody.has(\"authenticated\");"
]
}
}
],
"request": {
"auth": {
"type": "digest",
"digest": [
{
"key": "algorithm",
"value": "MD5",
"type": "string"
},
{
"key": "username",
"value": "postman",
"type": "string"
},
{
"key": "realm",
"value": "{{echo_digest_realm}}",
"type": "string"
},
{
"key": "password",
"value": "password",
"type": "string"
},
{
"key": "nonce",
"value": "{{echo_digest_nonce}}",
"type": "string"
},
{
"key": "nonceCount",
"value": "",
"type": "string"
},
{
"key": "clientNonce",
"value": "",
"type": "string"
},
{
"key": "opaque",
"value": "",
"type": "string"
},
{
"key": "qop",
"value": "",
"type": "string"
},
{
"key": "disableRetryRequest",
"type": "any"
}
]
},
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Digest username=\"postman\", realm=\"Users\", nonce=\"ni1LiL0O37PRRhofWdCLmwFsnEtH1lew\", uri=\"/digest-auth\", response=\"254679099562cf07df9b6f5d8d15db44\", opaque=\"\""
}
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "https://postman-echo.com/digest-auth",
"protocol": "https",
"host": [
"postman-echo",
"com"
],
"path": [
"digest-auth"
]
},
"description": "This endpoint sends a hashed Digest Authorization header to gain access to a valid `200 Ok` response code. In Postman, it uses the stored [global variables](https://www.getpostman.com/docs/environments#gloval-variables?source=echo-collection-app-onboarding), `echo_digest_realm` and `echo_digest_nonce`, to generate the hashed authorisation header.\n\nWithin Postman, for this request to successfully authenticate, running the previous request \"DigestAuth Request\" stores the relevant information within the global variables."
},
"response": [
{
"id": "9558357d-2969-4890-96e6-5e15af6782d7",
"name": "200",
"originalRequest": {
"header": [],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": ""
},
"description": ""
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "javascript",
"header": [
{
"name": "Access-Control-Allow-Credentials",
"key": "Access-Control-Allow-Credentials",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Headers",
"key": "Access-Control-Allow-Headers",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Methods",
"key": "Access-Control-Allow-Methods",
"value": "",
"description": ""
},
{
"name": "Access-Control-Allow-Origin",
"key": "Access-Control-Allow-Origin",
"value": "",
"description": ""
},
{
"name": "Connection",
"key": "Connection",
"value": "keep-alive",
"description": ""
},
{
"name": "Content-Encoding",
"key": "Content-Encoding",
"value": "gzip",
"description": ""
},
{
"name": "Content-Length",
"key": "Content-Length",
"value": "42",
"description": ""
},
{
"name": "Content-Type",
"key": "Content-Type",
"value": "application/json; charset=utf-8",
"description": ""
},
{
"name": "Date",
"key": "Date",
"value": "Thu, 29 Oct 2015 06:17:51 GMT",
"description": ""
},
{
"name": "Server",
"key": "Server",
"value": "nginx/1.6.2",
"description": ""
},
{
"name": "Vary",
"key": "Vary",
"value": "Accept-Encoding",
"description": ""