11{
22 "info" : {
3- "_postman_id" : " 6ab595a8-0851-4288-b9c2-c9c2b9984a60 " ,
3+ "_postman_id" : " e6a3f550-7ad2-40ba-8858-a4ff3ac908ec " ,
44 "name" : " BackendService" ,
55 "schema" : " https://schema.getpostman.com/json/collection/v2.0.0/collection.json" ,
6- "_exporter_id" : " 34215553 "
6+ "_exporter_id" : " 38297939 "
77 },
88 "item" : [
99 {
10- "name" : " GenerateRandomContent " ,
10+ "name" : " Post content " ,
1111 "event" : [
1212 {
1313 "listen" : " test" ,
2525 }
2626 }
2727 ],
28- "protocolProfileBehavior" : {
29- "disableBodyPruning" : true
30- },
31- "request" : {
32- "method" : " GET" ,
33- "header" : [],
34- "body" : {
35- "mode" : " raw" ,
36- "raw" : " " ,
37- "options" : {
38- "raw" : {
39- "language" : " json"
40- }
41- }
42- },
43- "url" : {
44- "raw" : " http://localhost/backend-service/api/v1/contents/random?size=1KB" ,
45- "protocol" : " http" ,
46- "host" : [
47- " localhost"
48- ],
49- "path" : [
50- " backend-service" ,
51- " api" ,
52- " v1" ,
53- " contents" ,
54- " random"
55- ],
56- "query" : [
57- {
58- "key" : " size" ,
59- "value" : " 1KB"
60- }
61- ]
62- }
63- },
64- "response" : []
65- },
66- {
67- "name" : " CreateRandomContent" ,
68- "event" : [
69- {
70- "listen" : " test" ,
71- "script" : {
72- "exec" : [
73- " pm.test(\" Status code is 200\" , function () {\r " ,
74- " pm.response.to.have.status(200);\r " ,
75- " });\r " ,
76- " pm.test(\" Post Content\" , function () {\r " ,
77- " pm.collectionVariables.set('content-id', pm.response.json().id);\r " ,
78- " });"
79- ],
80- "type" : " text/javascript" ,
81- "packages" : {}
82- }
83- }
84- ],
85- "protocolProfileBehavior" : {
86- "disableBodyPruning" : true
87- },
8828 "request" : {
89- "method" : " GET " ,
29+ "method" : " POST " ,
9030 "header" : [],
9131 "body" : {
9232 "mode" : " raw" ,
93- "raw" : " " ,
33+ "raw" : " { \r\n \" id \" : 816339151, \r\n \" name \" : \" aaaaaaaa \" , \r\n \" description \" : \" aaaaaaaa \"\r\n } " ,
9434 "options" : {
9535 "raw" : {
9636 "language" : " json"
9737 }
9838 }
9939 },
100- "url" : {
101- "raw" : " http://localhost/backend-service/api/v1/contents/create/random?size=10MB" ,
102- "protocol" : " http" ,
103- "host" : [
104- " localhost"
105- ],
106- "path" : [
107- " backend-service" ,
108- " api" ,
109- " v1" ,
110- " contents" ,
111- " create" ,
112- " random"
113- ],
114- "query" : [
115- {
116- "key" : " size" ,
117- "value" : " 10MB"
118- }
119- ]
120- }
40+ "url" : " {{BACKEND_SERVICE}}/v1/data"
12141 },
12242 "response" : []
12343 },
12444 {
125- "name" : " CreateContent " ,
45+ "name" : " Update content " ,
12646 "event" : [
12747 {
12848 "listen" : " test" ,
12949 "script" : {
13050 "exec" : [
13151 " pm.test(\" Status code is 200\" , function () {\r " ,
13252 " pm.response.to.have.status(200);\r " ,
133- " });\r " ,
134- " pm.test(\" Post Content\" , function () {\r " ,
135- " pm.collectionVariables.set('content-id', pm.response.json().id);\r " ,
13653 " });"
13754 ],
13855 "type" : " text/javascript" ,
14158 }
14259 ],
14360 "request" : {
144- "method" : " POST " ,
61+ "method" : " PUT " ,
14562 "header" : [],
14663 "body" : {
14764 "mode" : " raw" ,
148- "raw" : " {\r\n \" userId \" : 816339151,\r\n \" title \" : \" aaaaaaaa \" ,\r\n \" text \" : \" aaaaaaaa \"\r\n }" ,
65+ "raw" : " {\r\n \" id \" : 816339151,\r\n \" name \" : \" bbbbbbb \" ,\r\n \" description \" : \" bbbbbbb \"\r\n }" ,
14966 "options" : {
15067 "raw" : {
15168 "language" : " json"
15269 }
15370 }
15471 },
155- "url" : " http://localhost/backend-service/api/ v1/contents "
72+ "url" : " {{BACKEND_SERVICE}}/ v1/data "
15673 },
15774 "response" : []
15875 },
16178 "request" : {
16279 "method" : " GET" ,
16380 "header" : [],
164- "url" : " http://localhost/backend-service/api/ v1/contents "
81+ "url" : " {{BACKEND_SERVICE}}/ v1/data "
16582 },
16683 "response" : []
16784 },
16885 {
169- "name" : " FetchAContent" ,
170- "event" : [
171- {
172- "listen" : " test" ,
173- "script" : {
174- "exec" : [
175- " "
176- ],
177- "type" : " text/javascript" ,
178- "packages" : {}
179- }
180- }
181- ],
182- "protocolProfileBehavior" : {
183- "disableBodyPruning" : true
184- },
86+ "name" : " GetContentById" ,
18587 "request" : {
18688 "method" : " GET" ,
18789 "header" : [],
188- "body" : {
189- "mode" : " raw" ,
190- "raw" : " " ,
191- "options" : {
192- "raw" : {
193- "language" : " json"
194- }
195- }
196- },
197- "url" : " http://localhost/backend-service/api/v1/contents/{{content-id}}"
90+ "url" : " http://localhost/backend-service/api/v1/contents"
19891 },
19992 "response" : []
20093 },
20194 {
202- "name" : " AcceptTransfer " ,
95+ "name" : " DeleteContentById " ,
20396 "event" : [
20497 {
20598 "listen" : " test" ,
20699 "script" : {
207100 "exec" : [
208- " const responseJson = pm.response.json();\r " ,
209- " const id = responseJson.id\r " ,
210- " \r " ,
211- " pm.collectionVariables.set('transfer-id', id);"
101+ " "
212102 ],
213103 "type" : " text/javascript" ,
214104 "packages" : {}
215105 }
216106 }
217107 ],
218108 "request" : {
219- "method" : " POST" ,
220- "header" : [],
221- "body" : {
222- "mode" : " raw" ,
223- "raw" : " {\r\n \" id\" : \" 35\" ,\r\n \" endpoint\" : \" http://localhost:8080/api/v1/contents/{{content-id}}\" ,\r\n \" authKey\" : \" Authorization\" ,\r\n \" authCode\" : \" 100000\" ,\r\n \" properties\" : {}\r\n }" ,
224- "options" : {
225- "raw" : {
226- "language" : " json"
227- }
228- }
229- },
230- "url" : " http://localhost/backend-service/api/v1/transfers"
231- },
232- "response" : []
233- },
234- {
235- "name" : " GetTransfer" ,
236- "protocolProfileBehavior" : {
237- "disableBodyPruning" : true
238- },
239- "request" : {
240- "method" : " GET" ,
109+ "method" : " DELETE" ,
241110 "header" : [],
242111 "body" : {
243112 "mode" : " raw" ,
248117 }
249118 }
250119 },
251- "url" : " http://localhost/backend-service/api/v1/transfers/{{transfer-id}}"
252- },
253- "response" : []
254- },
255- {
256- "name" : " GetTransferContent" ,
257- "protocolProfileBehavior" : {
258- "disableBodyPruning" : true
259- },
260- "request" : {
261- "method" : " GET" ,
262- "header" : [],
263- "body" : {
264- "mode" : " raw" ,
265- "raw" : " {\r\n \" id\" : \" 123456789011\" ,\r\n \" endpoint\" : \" http://alice-tractusx-connector-dataplane:8081/api/public\" ,\r\n \" authKey\" : \" Authorization\" ,\r\n \" authCode\" : \" 100000\" ,\r\n \" properties\" : {}\r\n }" ,
266- "options" : {
267- "raw" : {
268- "language" : " json"
269- }
270- }
271- },
272- "url" : " http://localhost/backend-service/api/v1/transfers/{{transfer-id}}/contents"
120+ "url" : " {{BACKEND_SERVICE}}/v1/data/{{CONTENT_ID}}"
273121 },
274122 "response" : []
275123 }
298146 ],
299147 "variable" : [
300148 {
301- "key" : " content-id" ,
302- "value" : " "
303- },
304- {
305- "key" : " transfer-id" ,
149+ "key" : " CONTENT_ID" ,
306150 "value" : " "
307151 },
308152 {
309- "value " : " " ,
310- "disabled " : true
153+ "key " : " BACKEND_SERVICE " ,
154+ "value " : " http://localhost/data-service "
311155 }
312156 ]
313157}
0 commit comments