· 6 years ago · Feb 13, 2020, 05:06 PM
1{
2 "info": {
3 "_postman_id": "f8860afd-ad42-4399-933f-351848a9a07a",
4 "name": "GOVERNANÇA_AMQ",
5 "description": "Requests que validam o funcionamento do AMQ no que diz respeito.",
6 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7 },
8 "item": [
9 {
10 "name": "01 - Criação do Address [1/2]",
11 "request": {
12 "auth": {
13 "type": "noauth"
14 },
15 "method": "POST",
16 "header": [
17 {
18 "key": "Content-Type",
19 "name": "Content-Type",
20 "value": "application/json",
21 "type": "text"
22 }
23 ],
24 "body": {
25 "mode": "raw",
26 "raw": "[\"FILA01\", \"ANYCAST\"]",
27 "options": {
28 "raw": {
29 "language": "json"
30 }
31 }
32 },
33 "url": {
34 "raw": "http://localhost:8090/api/notificacoes?operation=ADD_ADDRESS",
35 "protocol": "http",
36 "host": [
37 "localhost"
38 ],
39 "port": "8090",
40 "path": [
41 "api",
42 "notificacoes"
43 ],
44 "query": [
45 {
46 "key": "operation",
47 "value": "ADD_ADDRESS"
48 }
49 ]
50 },
51 "description": "É necessário criar um address primeiro do tipo anycast antes da criação de uma fila."
52 },
53 "response": []
54 },
55 {
56 "name": "02 - Criação da Fila [2/2]",
57 "request": {
58 "auth": {
59 "type": "noauth"
60 },
61 "method": "POST",
62 "header": [
63 {
64 "key": "Content-Type",
65 "name": "Content-Type",
66 "type": "text",
67 "value": "application/json"
68 }
69 ],
70 "body": {
71 "mode": "raw",
72 "raw": "[\n \"FILA01\",\n \"ANYCAST\",\n \"FILA01\",\n null,\n true,\n -1,\n false,\n true\n]",
73 "options": {
74 "raw": {
75 "language": "json"
76 }
77 }
78 },
79 "url": {
80 "raw": "http://localhost:8090/api/notificacoes?operation=ADD_QUEUE",
81 "protocol": "http",
82 "host": [
83 "localhost"
84 ],
85 "port": "8090",
86 "path": [
87 "api",
88 "notificacoes"
89 ],
90 "query": [
91 {
92 "key": "operation",
93 "value": "ADD_QUEUE"
94 }
95 ]
96 },
97 "description": "Criação da fila propriamente dita."
98 },
99 "response": []
100 },
101 {
102 "name": "03 - Verificando as Permissões Padrões da Fila",
103 "request": {
104 "auth": {
105 "type": "noauth"
106 },
107 "method": "POST",
108 "header": [
109 {
110 "key": "Content-Type",
111 "name": "Content-Type",
112 "type": "text",
113 "value": "application/json"
114 }
115 ],
116 "body": {
117 "mode": "raw",
118 "raw": "[\"FILA01\"]",
119 "options": {
120 "raw": {
121 "language": "json"
122 }
123 }
124 },
125 "url": {
126 "raw": "http://localhost:8090/api/notificacoes?operation=GET_PERMISSIONS",
127 "protocol": "http",
128 "host": [
129 "localhost"
130 ],
131 "port": "8090",
132 "path": [
133 "api",
134 "notificacoes"
135 ],
136 "query": [
137 {
138 "key": "operation",
139 "value": "GET_PERMISSIONS"
140 }
141 ]
142 },
143 "description": "Request que carrega as permissões padrões para uma fila."
144 },
145 "response": []
146 },
147 {
148 "name": "04 - Altera as Permissões Padrões",
149 "request": {
150 "auth": {
151 "type": "noauth"
152 },
153 "method": "POST",
154 "header": [
155 {
156 "key": "Content-Type",
157 "name": "Content-Type",
158 "type": "text",
159 "value": "application/json"
160 }
161 ],
162 "body": {
163 "mode": "raw",
164 "raw": "[\n \"FILA01\",\n \"AAAAAAAAAAA,admin\",\n \"admin\",\n \"admin\",\n \"admin\",\n \"admin\",\n \"admin\",\n \"admin\",\n \"admin\",\n \"admin\",\n \"admin\"\n ]",
165 "options": {
166 "raw": {
167 "language": "json"
168 }
169 }
170 },
171 "url": {
172 "raw": "http://localhost:8090/api/notificacoes?operation=CHANGE_PERMISSION",
173 "protocol": "http",
174 "host": [
175 "localhost"
176 ],
177 "port": "8090",
178 "path": [
179 "api",
180 "notificacoes"
181 ],
182 "query": [
183 {
184 "key": "operation",
185 "value": "CHANGE_PERMISSION"
186 }
187 ]
188 },
189 "description": "Faz a alteração das permissões padrões para restringir o acesso a fila."
190 },
191 "response": []
192 }
193 ],
194 "protocolProfileBehavior": {}
195}