Skip to content

Commit fa242b9

Browse files
committed
added postman-collection
postman collection for github APIs consumed in github-api-test
1 parent 9658193 commit fa242b9

File tree

1 file changed

+174
-0
lines changed

1 file changed

+174
-0
lines changed
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
{
2+
"info": {
3+
"_postman_id": "#postman_id",
4+
"name": "HFLA GitHub API ",
5+
"description": "APIs consumed in civictechindex/github-api-test\n\n",
6+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7+
},
8+
"item": [
9+
{
10+
"name": "GitHub API Authenticate",
11+
"request": {
12+
"auth": {
13+
"type": "basic",
14+
"basic": [
15+
{
16+
"key": "password",
17+
"value": "<personal-access-token>",
18+
"type": "string"
19+
},
20+
{
21+
"key": "username",
22+
"value": "<username>",
23+
"type": "string"
24+
}
25+
]
26+
},
27+
"method": "GET",
28+
"header": [],
29+
"url": {
30+
"raw": "https://api.github.com/user",
31+
"protocol": "https",
32+
"host": [
33+
"api",
34+
"github",
35+
"com"
36+
],
37+
"path": [
38+
"user"
39+
]
40+
},
41+
"description": "To access GitHub APIs: \n\nAuthenticate GitHub API via Basic Authentication\nhttps://developer.github.com/v3/auth/\n\nFor unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, and not the user making requests\nhttps://developer.github.com/v3/#rate-limiting"
42+
},
43+
"response": []
44+
},
45+
{
46+
"name": "Check Rate Limit",
47+
"request": {
48+
"auth": {
49+
"type": "basic",
50+
"basic": [
51+
{
52+
"key": "password",
53+
"value": "<personal-access-token>",
54+
"type": "string"
55+
},
56+
{
57+
"key": "username",
58+
"value": "<username>",
59+
"type": "string"
60+
}
61+
]
62+
},
63+
"method": "GET",
64+
"header": [],
65+
"url": {
66+
"raw": "https://api.github.com/rate_limit",
67+
"protocol": "https",
68+
"host": [
69+
"api",
70+
"github",
71+
"com"
72+
],
73+
"path": [
74+
"rate_limit"
75+
]
76+
},
77+
"description": "Certain Rate Limiting Rules need to be considered when consuming the Github APIs\nhttps://developer.github.com/v3/#rate-limiting"
78+
},
79+
"response": []
80+
},
81+
{
82+
"name": "Search Repositories",
83+
"request": {
84+
"auth": {
85+
"type": "basic",
86+
"basic": [
87+
{
88+
"key": "password",
89+
"value": "<personal-access-token>",
90+
"type": "string"
91+
},
92+
{
93+
"key": "username",
94+
"value": "<username>",
95+
"type": "string"
96+
}
97+
]
98+
},
99+
"method": "GET",
100+
"header": [],
101+
"url": {
102+
"raw": "https://api.github.com/search/repositories?q=topic:hack-for-la&sort=updated&order=desc",
103+
"protocol": "https",
104+
"host": [
105+
"api",
106+
"github",
107+
"com"
108+
],
109+
"path": [
110+
"search",
111+
"repositories"
112+
],
113+
"query": [
114+
{
115+
"key": "q",
116+
"value": "topic:hack-for-la",
117+
"description": "topic:hack-for-la"
118+
},
119+
{
120+
"key": "sort",
121+
"value": "updated"
122+
},
123+
{
124+
"key": "order",
125+
"value": "desc"
126+
}
127+
]
128+
},
129+
"description": "Search Repositories API Documentation\nhttps://developer.github.com/v3/search/#search-repositories"
130+
},
131+
"response": []
132+
},
133+
{
134+
"name": "List Languages",
135+
"request": {
136+
"auth": {
137+
"type": "basic",
138+
"basic": [
139+
{
140+
"key": "password",
141+
"value": "<personal-access-token>",
142+
"type": "string"
143+
},
144+
{
145+
"key": "username",
146+
"value": "<username>",
147+
"type": "string"
148+
}
149+
]
150+
},
151+
"method": "GET",
152+
"header": [],
153+
"url": {
154+
"raw": "https://api.github.com/repos/civictechindex/website/languages",
155+
"protocol": "https",
156+
"host": [
157+
"api",
158+
"github",
159+
"com"
160+
],
161+
"path": [
162+
"repos",
163+
"civictechindex",
164+
"website",
165+
"languages"
166+
]
167+
},
168+
"description": "List Languages API documentation\nhttps://developer.github.com/v3/repos/#list-languages"
169+
},
170+
"response": []
171+
}
172+
],
173+
"protocolProfileBehavior": {}
174+
}

0 commit comments

Comments
 (0)