Skip to content

Commit 6bed78f

Browse files
committed
chore: added postman collection [skip ci]
1 parent 9168c56 commit 6bed78f

File tree

1 file changed

+162
-0
lines changed

1 file changed

+162
-0
lines changed
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"info": {
3+
"_postman_id": "6afb9a95-7d53-445a-840c-49fa667baee1",
4+
"name": "Switcher GitOps",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
6+
"_exporter_id": "9436108"
7+
},
8+
"item": [
9+
{
10+
"name": "Account",
11+
"item": [
12+
{
13+
"name": "Create",
14+
"request": {
15+
"method": "POST",
16+
"header": [],
17+
"body": {
18+
"mode": "raw",
19+
"raw": "{\r\n\t\"repository\": \"{{github_url}}\",\r\n\t\"token\": \"{{github_pat}}\",\r\n\t\"branch\": \"main\",\r\n \"environment\": \"default\",\r\n\t\"domain\": {\r\n\t\t\"id\": \"{{domain_id}}\",\r\n\t\t\"name\": \"GitOps\"\r\n\t},\r\n\t\"settings\": {\r\n\t\t\"active\": true,\r\n\t\t\"window\": \"30s\",\r\n\t\t\"forceprune\": false\r\n\t}\t\r\n}",
20+
"options": {
21+
"raw": {
22+
"language": "json"
23+
}
24+
}
25+
},
26+
"url": {
27+
"raw": "{{url}}/account",
28+
"host": [
29+
"{{url}}"
30+
],
31+
"path": [
32+
"account"
33+
]
34+
}
35+
},
36+
"response": []
37+
},
38+
{
39+
"name": "Update",
40+
"request": {
41+
"method": "PUT",
42+
"header": [],
43+
"body": {
44+
"mode": "raw",
45+
"raw": "{\r\n\t\"repository\": \"{{github_url}}\",\r\n \"branch\": \"main\",\r\n \"environment\": \"default\",\r\n \"domain\": {\r\n\t\t\"id\": \"{{domain_id}}\",\r\n \"name\": \"GitOps\"\r\n },\r\n \"settings\": {\r\n \"active\": true,\r\n \"window\": \"30s\",\r\n \"forceprune\": false\r\n }\r\n}",
46+
"options": {
47+
"raw": {
48+
"language": "json"
49+
}
50+
}
51+
},
52+
"url": {
53+
"raw": "{{url}}/account",
54+
"host": [
55+
"{{url}}"
56+
],
57+
"path": [
58+
"account"
59+
]
60+
}
61+
},
62+
"response": []
63+
},
64+
{
65+
"name": "Fetch All By Domain Id",
66+
"protocolProfileBehavior": {
67+
"disableBodyPruning": true
68+
},
69+
"request": {
70+
"method": "GET",
71+
"header": [],
72+
"body": {
73+
"mode": "raw",
74+
"raw": "",
75+
"options": {
76+
"raw": {
77+
"language": "json"
78+
}
79+
}
80+
},
81+
"url": {
82+
"raw": "{{url}}/account/{{domain_id}}",
83+
"host": [
84+
"{{url}}"
85+
],
86+
"path": [
87+
"account",
88+
"{{domain_id}}"
89+
]
90+
}
91+
},
92+
"response": []
93+
},
94+
{
95+
"name": "Fetch By Domain Id / Env",
96+
"request": {
97+
"method": "GET",
98+
"header": [],
99+
"url": {
100+
"raw": "{{url}}/account/{{domain_id}}/default",
101+
"host": [
102+
"{{url}}"
103+
],
104+
"path": [
105+
"account",
106+
"{{domain_id}}",
107+
"default"
108+
]
109+
}
110+
},
111+
"response": []
112+
},
113+
{
114+
"name": "Delete By Domain Id / Env",
115+
"request": {
116+
"method": "DELETE",
117+
"header": [],
118+
"body": {
119+
"mode": "raw",
120+
"raw": "",
121+
"options": {
122+
"raw": {
123+
"language": "json"
124+
}
125+
}
126+
},
127+
"url": {
128+
"raw": "{{url}}/account/{{domain_id}}/default",
129+
"host": [
130+
"{{url}}"
131+
],
132+
"path": [
133+
"account",
134+
"{{domain_id}}",
135+
"default"
136+
]
137+
}
138+
},
139+
"response": []
140+
}
141+
]
142+
},
143+
{
144+
"name": "API Check",
145+
"request": {
146+
"method": "GET",
147+
"header": [],
148+
"url": {
149+
"raw": "{{url}}/api/check",
150+
"host": [
151+
"{{url}}"
152+
],
153+
"path": [
154+
"api",
155+
"check"
156+
]
157+
}
158+
},
159+
"response": []
160+
}
161+
]
162+
}

0 commit comments

Comments
 (0)