-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-clients-collection-structure.json
More file actions
155 lines (155 loc) · 4.28 KB
/
Copy pathapi-clients-collection-structure.json
File metadata and controls
155 lines (155 loc) · 4.28 KB
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
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/api-clients/refs/heads/main/json-structure/api-clients-collection-structure.json",
"name": "Collection",
"description": "A named, ordered group of HTTP requests as stored by an API client (Postman Collection, Insomnia workspace, Bruno folder, Hoppscotch collection). Collections capture the intended way to exercise an API and travel between environments, repos, and team members.",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Identifier of the collection inside the client.",
"example": "col_users-api-v1"
},
"name": {
"type": "string",
"description": "Display name of the collection.",
"example": "Users API v1"
},
"description": {
"type": "string",
"description": "Markdown description summarizing what the collection covers.",
"example": "End-to-end requests for the Users API including CRUD, search, and bulk operations."
},
"client": {
"type": "string",
"description": "API client that owns the canonical format of this collection.",
"enum": [
"postman",
"insomnia",
"bruno",
"hoppscotch",
"httpie",
"paw",
"yaak",
"thunder-client",
"apidog",
"readyapi",
"scalar",
"rapidapi",
"stoplight",
"firecamp",
"kreya",
"hurl",
"restfox",
"voiden",
"other"
],
"example": "postman"
},
"specVersion": {
"type": "string",
"description": "Version of the client-native collection format (e.g. Postman Collection Format v2.1).",
"example": "2.1.0"
},
"auth": {
"type": "object",
"description": "Collection-level authentication that requests inherit by default.",
"properties": {
"type": {
"type": "string",
"enum": [
"none",
"bearer",
"apikey",
"basic",
"oauth2",
"aws-sigv4"
],
"example": "bearer"
}
}
},
"variables": {
"type": "array",
"description": "Collection-scoped variables available to all requests.",
"items": {
"type": "object",
"properties": {
"name": { "type": "string", "example": "baseUrl" },
"value": { "type": "string", "example": "https://api.example.com" },
"secret": { "type": "boolean", "example": false }
},
"required": [
"name"
]
}
},
"requests": {
"type": "array",
"description": "Requests contained in the collection. Each item should validate against the HTTPRequest structure.",
"items": {
"type": "object",
"properties": {
"id": { "type": "string", "example": "req_list-users" },
"name": { "type": "string", "example": "List Users" },
"method": { "type": "string", "example": "GET" },
"url": { "type": "uri", "example": "{{baseUrl}}/v1/users" }
},
"required": [
"name",
"method",
"url"
]
}
},
"folders": {
"type": "array",
"description": "Optional nested folder grouping inside the collection.",
"items": {
"type": "object",
"properties": {
"name": { "type": "string", "example": "Admin" },
"requestIds": {
"type": "array",
"items": { "type": "string" },
"example": [
"req_promote-user",
"req_disable-user"
]
}
}
}
},
"exportedFrom": {
"type": "string",
"description": "Source spec the collection was generated from, if any.",
"enum": [
"openapi",
"asyncapi",
"graphql-sdl",
"raml",
"hand-authored",
"har",
"other"
],
"example": "openapi"
},
"tags": {
"type": "array",
"description": "Tags categorizing the collection.",
"items": {
"type": "string"
},
"example": [
"Users",
"v1",
"Internal"
]
}
},
"required": [
"name",
"client",
"requests"
]
}