|
36 | 36 | "auth": { "authType": "inherit", "authActive": true }, |
37 | 37 | "body": { "contentType": null, "body": null }, |
38 | 38 | "requestVariables": [] |
| 39 | + }, |
| 40 | + { |
| 41 | + "v": "1", |
| 42 | + "id": "f6a7b8c9-d0e1-2345-fabc-345678901236", |
| 43 | + "name": "Swagger UI", |
| 44 | + "method": "GET", |
| 45 | + "endpoint": "<<baseUrl>>/api-docs", |
| 46 | + "params": [], |
| 47 | + "headers": [], |
| 48 | + "preRequestScript": "", |
| 49 | + "testScript": "", |
| 50 | + "auth": { "authType": "inherit", "authActive": true }, |
| 51 | + "body": { "contentType": null, "body": null }, |
| 52 | + "requestVariables": [] |
| 53 | + }, |
| 54 | + { |
| 55 | + "v": "1", |
| 56 | + "id": "f6a7b8c9-d0e1-2345-fabc-345678901237", |
| 57 | + "name": "OpenAPI JSON spec", |
| 58 | + "method": "GET", |
| 59 | + "endpoint": "<<baseUrl>>/api-docs.json", |
| 60 | + "params": [], |
| 61 | + "headers": [], |
| 62 | + "preRequestScript": "", |
| 63 | + "testScript": "", |
| 64 | + "auth": { "authType": "inherit", "authActive": true }, |
| 65 | + "body": { "contentType": null, "body": null }, |
| 66 | + "requestVariables": [] |
39 | 67 | } |
40 | 68 | ] |
41 | 69 | }, |
|
50 | 78 | "id": "b8c9d0e1-f2a3-4567-bcde-567890123457", |
51 | 79 | "name": "Create stream", |
52 | 80 | "method": "POST", |
53 | | - "endpoint": "<<baseUrl>>/streams", |
| 81 | + "endpoint": "<<baseUrl>>/v1/streams", |
54 | 82 | "params": [], |
55 | 83 | "headers": [ |
56 | 84 | { "key": "Content-Type", "value": "application/json", "active": true } |
|
63 | 91 | "body": "{\n \"sender\": \"<<senderPublicKey>>\",\n \"recipient\": \"<<recipientPublicKey>>\",\n \"amount\": 10000,\n \"token\": \"<<tokenAddress>>\",\n \"startTime\": 1708531200,\n \"endTime\": 1711209600\n}" |
64 | 92 | }, |
65 | 93 | "requestVariables": [] |
| 94 | + }, |
| 95 | + { |
| 96 | + "v": "1", |
| 97 | + "id": "b8c9d0e1-f2a3-4567-bcde-567890123458", |
| 98 | + "name": "List streams", |
| 99 | + "method": "GET", |
| 100 | + "endpoint": "<<baseUrl>>/v1/streams", |
| 101 | + "params": [ |
| 102 | + { "key": "sender", "value": "<<senderPublicKey>>", "active": true }, |
| 103 | + { "key": "recipient", "value": "<<recipientPublicKey>>", "active": false } |
| 104 | + ], |
| 105 | + "headers": [], |
| 106 | + "preRequestScript": "", |
| 107 | + "testScript": "", |
| 108 | + "auth": { "authType": "inherit", "authActive": true }, |
| 109 | + "body": { "contentType": null, "body": null }, |
| 110 | + "requestVariables": [] |
| 111 | + }, |
| 112 | + { |
| 113 | + "v": "1", |
| 114 | + "id": "b8c9d0e1-f2a3-4567-bcde-567890123459", |
| 115 | + "name": "Get stream by ID", |
| 116 | + "method": "GET", |
| 117 | + "endpoint": "<<baseUrl>>/v1/streams/<<streamId>>", |
| 118 | + "params": [], |
| 119 | + "headers": [], |
| 120 | + "preRequestScript": "", |
| 121 | + "testScript": "", |
| 122 | + "auth": { "authType": "inherit", "authActive": true }, |
| 123 | + "body": { "contentType": null, "body": null }, |
| 124 | + "requestVariables": [] |
| 125 | + }, |
| 126 | + { |
| 127 | + "v": "1", |
| 128 | + "id": "b8c9d0e1-f2a3-4567-bcde-567890123460", |
| 129 | + "name": "Get stream events", |
| 130 | + "method": "GET", |
| 131 | + "endpoint": "<<baseUrl>>/v1/streams/<<streamId>>/events", |
| 132 | + "params": [], |
| 133 | + "headers": [], |
| 134 | + "preRequestScript": "", |
| 135 | + "testScript": "", |
| 136 | + "auth": { "authType": "inherit", "authActive": true }, |
| 137 | + "body": { "contentType": null, "body": null }, |
| 138 | + "requestVariables": [] |
| 139 | + }, |
| 140 | + { |
| 141 | + "v": "1", |
| 142 | + "id": "b8c9d0e1-f2a3-4567-bcde-567890123461", |
| 143 | + "name": "Get claimable amount", |
| 144 | + "method": "GET", |
| 145 | + "endpoint": "<<baseUrl>>/v1/streams/<<streamId>>/claimable", |
| 146 | + "params": [ |
| 147 | + { "key": "at", "value": "", "active": false } |
| 148 | + ], |
| 149 | + "headers": [], |
| 150 | + "preRequestScript": "", |
| 151 | + "testScript": "", |
| 152 | + "auth": { "authType": "inherit", "authActive": true }, |
| 153 | + "body": { "contentType": null, "body": null }, |
| 154 | + "requestVariables": [] |
| 155 | + } |
| 156 | + ] |
| 157 | + }, |
| 158 | + { |
| 159 | + "v": 1, |
| 160 | + "id": "a7b8c9d0-e1f2-3456-abcd-456789012347", |
| 161 | + "name": "Users", |
| 162 | + "folders": [], |
| 163 | + "requests": [ |
| 164 | + { |
| 165 | + "v": "1", |
| 166 | + "id": "c9d0e1f2-a3b4-5678-cdef-678901234570", |
| 167 | + "name": "Register wallet", |
| 168 | + "method": "POST", |
| 169 | + "endpoint": "<<baseUrl>>/v1/users", |
| 170 | + "params": [], |
| 171 | + "headers": [ |
| 172 | + { "key": "Content-Type", "value": "application/json", "active": true } |
| 173 | + ], |
| 174 | + "preRequestScript": "", |
| 175 | + "testScript": "", |
| 176 | + "auth": { "authType": "inherit", "authActive": true }, |
| 177 | + "body": { |
| 178 | + "contentType": "application/json", |
| 179 | + "body": "{\n \"publicKey\": \"<<senderPublicKey>>\"\n}" |
| 180 | + }, |
| 181 | + "requestVariables": [] |
| 182 | + }, |
| 183 | + { |
| 184 | + "v": "1", |
| 185 | + "id": "c9d0e1f2-a3b4-5678-cdef-678901234571", |
| 186 | + "name": "Get user by public key", |
| 187 | + "method": "GET", |
| 188 | + "endpoint": "<<baseUrl>>/v1/users/<<senderPublicKey>>", |
| 189 | + "params": [], |
| 190 | + "headers": [], |
| 191 | + "preRequestScript": "", |
| 192 | + "testScript": "", |
| 193 | + "auth": { "authType": "inherit", "authActive": true }, |
| 194 | + "body": { "contentType": null, "body": null }, |
| 195 | + "requestVariables": [] |
| 196 | + }, |
| 197 | + { |
| 198 | + "v": "1", |
| 199 | + "id": "c9d0e1f2-a3b4-5678-cdef-678901234572", |
| 200 | + "name": "Get current user (authenticated)", |
| 201 | + "method": "GET", |
| 202 | + "endpoint": "<<baseUrl>>/v1/users/me", |
| 203 | + "params": [], |
| 204 | + "headers": [ |
| 205 | + { "key": "Authorization", "value": "Bearer <<authToken>>", "active": true } |
| 206 | + ], |
| 207 | + "preRequestScript": "", |
| 208 | + "testScript": "", |
| 209 | + "auth": { "authType": "inherit", "authActive": true }, |
| 210 | + "body": { "contentType": null, "body": null }, |
| 211 | + "requestVariables": [] |
| 212 | + }, |
| 213 | + { |
| 214 | + "v": "1", |
| 215 | + "id": "c9d0e1f2-a3b4-5678-cdef-678901234573", |
| 216 | + "name": "Get user activity events", |
| 217 | + "method": "GET", |
| 218 | + "endpoint": "<<baseUrl>>/v1/users/<<senderPublicKey>>/events", |
| 219 | + "params": [], |
| 220 | + "headers": [], |
| 221 | + "preRequestScript": "", |
| 222 | + "testScript": "", |
| 223 | + "auth": { "authType": "inherit", "authActive": true }, |
| 224 | + "body": { "contentType": null, "body": null }, |
| 225 | + "requestVariables": [] |
66 | 226 | } |
67 | 227 | ] |
68 | 228 | }, |
69 | 229 | { |
70 | 230 | "v": 1, |
71 | 231 | "id": "c9d0e1f2-a3b4-5678-cdef-678901234568", |
72 | | - "name": "Events", |
| 232 | + "name": "Events (SSE)", |
73 | 233 | "folders": [], |
74 | 234 | "requests": [ |
75 | 235 | { |
76 | 236 | "v": "1", |
77 | 237 | "id": "d0e1f2a3-b4c5-6789-defa-789012345679", |
78 | 238 | "name": "Subscribe to stream events (SSE)", |
79 | 239 | "method": "GET", |
80 | | - "endpoint": "<<baseUrl>>/events/subscribe", |
| 240 | + "endpoint": "<<baseUrl>>/v1/events/subscribe", |
81 | 241 | "params": [ |
82 | | - { "key": "streams", "value": "123", "active": true }, |
| 242 | + { "key": "streams", "value": "<<streamId>>", "active": true }, |
83 | 243 | { "key": "users", "value": "<<senderPublicKey>>", "active": true }, |
84 | 244 | { "key": "all", "value": "false", "active": true } |
85 | 245 | ], |
|
98 | 258 | "id": "e1f2a3b4-c5d6-7890-efab-890123456780", |
99 | 259 | "name": "Get SSE connection stats", |
100 | 260 | "method": "GET", |
101 | | - "endpoint": "<<baseUrl>>/events/stats", |
| 261 | + "endpoint": "<<baseUrl>>/v1/events/stats", |
102 | 262 | "params": [], |
103 | 263 | "headers": [], |
104 | 264 | "preRequestScript": "", |
|
0 commit comments