-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeckofcards.postman_collection.json
94 lines (94 loc) · 1.85 KB
/
deckofcards.postman_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
{
"info": {
"_postman_id": "e15f88fe-57c8-ff09-d177-678f6254a145",
"name": "Deckofcards",
"description": "The Deck of Cards API provides a programmatic way to make requests for cards in a standard deck or to shuffle cards in a deck. Multiple decks can be shuffled or drawn from. See https://deckofcardsapi.com for more information. No authorization is needed.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Draw three cards",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "https://deckofcardsapi.com/api/deck/{{deck_id}}/draw/?count=3",
"protocol": "https",
"host": [
"deckofcardsapi",
"com"
],
"path": [
"api",
"deck",
"{{deck_id}}",
"draw",
""
],
"query": [
{
"key": "count",
"value": "3"
}
]
},
"description": "deckofcardsapi.com "
},
"response": []
},
{
"name": "Shuffle single deck",
"request": {
"method": "GET",
"header": [],
"body": {},
"url": {
"raw": "https://deckofcardsapi.com/api/deck/new/shuffle/?deck_count=1",
"protocol": "https",
"host": [
"deckofcardsapi",
"com"
],
"path": [
"api",
"deck",
"new",
"shuffle",
""
],
"query": [
{
"key": "deck_count",
"value": "1"
}
]
},
"description": "Shuffle the cards in a single deck"
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "8357713b-c0fc-4ff4-94cd-691c1dbb2d16",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "63700483-f301-47b3-97c3-0a794eb389be",
"type": "text/javascript",
"exec": [
""
]
}
}
]
}