github.com/soulteary/pocket-bookcase@v0.0.0-20240428065142-0b5a9a0fc98a/docs/postman/shiori.postman_collection.json (about) 1 { 2 "info": { 3 "_postman_id": "aeadb2db-90b7-40f3-87d2-de76f8e8972a", 4 "name": "shiori", 5 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 }, 7 "item": [ 8 { 9 "name": "Auth", 10 "item": [ 11 { 12 "name": "/api/login", 13 "request": { 14 "method": "POST", 15 "header": [ 16 { 17 "key": "Content-Type", 18 "name": "Content-Type", 19 "value": "application/json", 20 "type": "text" 21 } 22 ], 23 "body": { 24 "mode": "raw", 25 "raw": "{\n\t\"username\": \"shiori\",\n\t\"password\": \"gopher\",\n\t\"remember\": true,\n\t\"owner\": true\n}" 26 }, 27 "url": { 28 "raw": "{{host}}/api/login", 29 "host": [ 30 "{{host}}" 31 ], 32 "path": [ 33 "api", 34 "login" 35 ] 36 } 37 }, 38 "response": [] 39 }, 40 { 41 "name": "/api/logout", 42 "request": { 43 "method": "POST", 44 "header": [ 45 { 46 "key": "X-Session-Id", 47 "value": "{{sessionId}}", 48 "type": "text" 49 } 50 ], 51 "url": { 52 "raw": "{{host}}/api/logout", 53 "host": [ 54 "{{host}}" 55 ], 56 "path": [ 57 "api", 58 "logout" 59 ] 60 } 61 }, 62 "response": [] 63 } 64 ] 65 }, 66 { 67 "name": "Tags", 68 "item": [ 69 { 70 "name": "/api/tags", 71 "request": { 72 "method": "GET", 73 "header": [ 74 { 75 "key": "X-Session-Id", 76 "type": "text", 77 "value": "{{sessionId}}" 78 } 79 ], 80 "url": { 81 "raw": "{{host}}/api/tags", 82 "host": [ 83 "{{host}}" 84 ], 85 "path": [ 86 "api", 87 "tags" 88 ] 89 } 90 }, 91 "response": [] 92 }, 93 { 94 "name": "/api/tag", 95 "request": { 96 "method": "PUT", 97 "header": [ 98 { 99 "key": "X-Session-Id", 100 "type": "text", 101 "value": "{{sessionId}}" 102 }, 103 { 104 "key": "Content-Type", 105 "name": "Content-Type", 106 "value": "application/json", 107 "type": "text" 108 } 109 ], 110 "body": { 111 "mode": "raw", 112 "raw": "{\n\t\"id\": 1,\n \"name\": \"renamed_tag_7\"\n}" 113 }, 114 "url": { 115 "raw": "{{host}}/api/tag", 116 "host": [ 117 "{{host}}" 118 ], 119 "path": [ 120 "api", 121 "tag" 122 ] 123 } 124 }, 125 "response": [] 126 } 127 ] 128 }, 129 { 130 "name": "Bookmarks", 131 "item": [ 132 { 133 "name": "/api/bookmarks", 134 "request": { 135 "method": "GET", 136 "header": [ 137 { 138 "key": "X-Session-Id", 139 "value": "{{sessionId}}", 140 "type": "text" 141 } 142 ], 143 "url": { 144 "raw": "{{host}}/api/bookmarks", 145 "host": [ 146 "{{host}}" 147 ], 148 "path": [ 149 "api", 150 "bookmarks" 151 ] 152 } 153 }, 154 "response": [] 155 }, 156 { 157 "name": "/api/bookmarks", 158 "request": { 159 "method": "POST", 160 "header": [ 161 { 162 "key": "X-Session-Id", 163 "type": "text", 164 "value": "{{sessionId}}" 165 }, 166 { 167 "key": "Content-Type", 168 "name": "Content-Type", 169 "value": "application/json", 170 "type": "text" 171 } 172 ], 173 "body": { 174 "mode": "raw", 175 "raw": "{\n\t\"url\": \"https://hckrnews.com\",\n\t\"createArchive\": false,\n\t\"public\": 1,\n\t\"tags\": [],\n\t\"title\": \"\",\n\t\"excerpt\": \"\"\n}" 176 }, 177 "url": { 178 "raw": "{{host}}/api/bookmarks", 179 "host": [ 180 "{{host}}" 181 ], 182 "path": [ 183 "api", 184 "bookmarks" 185 ] 186 } 187 }, 188 "response": [] 189 }, 190 { 191 "name": "/api/bookmarks", 192 "request": { 193 "method": "PUT", 194 "header": [ 195 { 196 "key": "X-Session-Id", 197 "type": "text", 198 "value": "{{sessionId}}" 199 }, 200 { 201 "key": "Content-Type", 202 "name": "Content-Type", 203 "type": "text", 204 "value": "application/json" 205 } 206 ], 207 "body": { 208 "mode": "raw", 209 "raw": "{\n \"id\": 3,\n \"url\": \"https://hckrnews.com\",\n \"title\": \"Hacker News sorted by time\",\n \"excerpt\": \"An unofficial, alternative interface to Hacker News\",\n \"author\": \"Wayne Larsen\",\n \"public\": 1,\n \"modified\": \"2019-09-22 06:05:54\",\n \"imageURL\": \"/bookmark/3/thumb\",\n \"hasContent\": false,\n \"hasArchive\": false,\n \"tags\": [],\n \"createArchive\": false\n}" 210 }, 211 "url": { 212 "raw": "{{host}}/api/bookmarks", 213 "host": [ 214 "{{host}}" 215 ], 216 "path": [ 217 "api", 218 "bookmarks" 219 ] 220 } 221 }, 222 "response": [] 223 }, 224 { 225 "name": "/api/bookmarks", 226 "request": { 227 "method": "DELETE", 228 "header": [ 229 { 230 "key": "X-Session-Id", 231 "type": "text", 232 "value": "{{sessionId}}" 233 }, 234 { 235 "key": "Content-Type", 236 "name": "Content-Type", 237 "type": "text", 238 "value": "application/json" 239 } 240 ], 241 "body": { 242 "mode": "raw", 243 "raw": "[1]" 244 }, 245 "url": { 246 "raw": "{{host}}/api/bookmarks", 247 "host": [ 248 "{{host}}" 249 ], 250 "path": [ 251 "api", 252 "bookmarks" 253 ] 254 } 255 }, 256 "response": [] 257 } 258 ] 259 }, 260 { 261 "name": "BFF", 262 "item": [ 263 { 264 "name": "/api/cache", 265 "request": { 266 "method": "PUT", 267 "header": [ 268 { 269 "key": "X-Session-Id", 270 "type": "text", 271 "value": "{{sessionId}}" 272 }, 273 { 274 "key": "Content-Type", 275 "name": "Content-Type", 276 "type": "text", 277 "value": "application/json" 278 } 279 ], 280 "body": { 281 "mode": "raw", 282 "raw": "{\n\t\"ids\": [1, 2],\n\t\"keepMetadata\": false,\n\t\"createArchive\": false\n}" 283 }, 284 "url": { 285 "raw": "{{host}}/api/cache", 286 "host": [ 287 "{{host}}" 288 ], 289 "path": [ 290 "api", 291 "cache" 292 ] 293 } 294 }, 295 "response": [] 296 }, 297 { 298 "name": "/api/bookmarks/tags", 299 "request": { 300 "method": "PUT", 301 "header": [ 302 { 303 "key": "X-Session-Id", 304 "type": "text", 305 "value": "{{sessionId}}" 306 }, 307 { 308 "key": "Content-Type", 309 "name": "Content-Type", 310 "type": "text", 311 "value": "application/json" 312 } 313 ], 314 "body": { 315 "mode": "raw", 316 "raw": "{\n \"ids\": [\n 1\n ],\n \"tags\": [\n {\n \"id\": 1,\n \"name\": \"new_tag\"\n }\n ]\n}" 317 }, 318 "url": { 319 "raw": "{{host}}/api/bookmarks/tags", 320 "host": [ 321 "{{host}}" 322 ], 323 "path": [ 324 "api", 325 "bookmarks", 326 "tags" 327 ] 328 }, 329 "description": "Performs bulk insertion of new tags into the specified bookmarks" 330 }, 331 "response": [] 332 } 333 ] 334 }, 335 { 336 "name": "Accounts", 337 "item": [ 338 { 339 "name": "/api/accounts", 340 "protocolProfileBehavior": { 341 "disableBodyPruning": true 342 }, 343 "request": { 344 "method": "GET", 345 "header": [ 346 { 347 "key": "X-Session-Id", 348 "value": "{{sessionId}}", 349 "type": "text" 350 }, 351 { 352 "key": "Content-Type", 353 "value": "application/json", 354 "type": "text" 355 } 356 ], 357 "body": { 358 "mode": "raw", 359 "raw": "" 360 }, 361 "url": { 362 "raw": "{{host}}/api/accounts", 363 "host": [ 364 "{{host}}" 365 ], 366 "path": [ 367 "api", 368 "accounts" 369 ] 370 } 371 }, 372 "response": [] 373 }, 374 { 375 "name": "/api/accounts", 376 "request": { 377 "method": "PUT", 378 "header": [ 379 { 380 "key": "X-Session-Id", 381 "value": "{{sessionId}}", 382 "type": "text" 383 }, 384 { 385 "key": "Content-Type", 386 "value": "application/json", 387 "type": "text" 388 } 389 ], 390 "body": { 391 "mode": "raw", 392 "raw": "{\n\t\"username\": \"shiori\",\n\t\"oldPassword\": \"gopher\",\n\t\"newPassword\": \"gopher\",\n\t\"owner\": true\n}" 393 }, 394 "url": { 395 "raw": "{{host}}/api/accounts", 396 "host": [ 397 "{{host}}" 398 ], 399 "path": [ 400 "api", 401 "accounts" 402 ] 403 } 404 }, 405 "response": [] 406 }, 407 { 408 "name": "/api/accounts", 409 "request": { 410 "method": "POST", 411 "header": [ 412 { 413 "key": "X-Session-Id", 414 "type": "text", 415 "value": "{{sessionId}}" 416 }, 417 { 418 "key": "Content-Type", 419 "type": "text", 420 "value": "application/json" 421 } 422 ], 423 "body": { 424 "mode": "raw", 425 "raw": "{\n\t\"username\": \"shiori3\",\n\t\"password\": \"gopher\",\n\t\"owner\": false\n}" 426 }, 427 "url": { 428 "raw": "{{host}}/api/accounts", 429 "host": [ 430 "{{host}}" 431 ], 432 "path": [ 433 "api", 434 "accounts" 435 ] 436 } 437 }, 438 "response": [] 439 }, 440 { 441 "name": "/api/accounts", 442 "request": { 443 "method": "DELETE", 444 "header": [ 445 { 446 "key": "X-Session-Id", 447 "type": "text", 448 "value": "{{sessionId}}" 449 }, 450 { 451 "key": "Content-Type", 452 "type": "text", 453 "value": "application/json" 454 } 455 ], 456 "body": { 457 "mode": "raw", 458 "raw": "[\"shiori\"]" 459 }, 460 "url": { 461 "raw": "{{host}}/api/accounts", 462 "host": [ 463 "{{host}}" 464 ], 465 "path": [ 466 "api", 467 "accounts" 468 ] 469 } 470 }, 471 "response": [] 472 } 473 ] 474 } 475 ], 476 "event": [ 477 { 478 "listen": "prerequest", 479 "script": { 480 "id": "d17b19de-37c1-472d-b919-d56e0f05f311", 481 "type": "text/javascript", 482 "exec": [ 483 "" 484 ] 485 } 486 }, 487 { 488 "listen": "test", 489 "script": { 490 "id": "a14c27ed-a4aa-4171-b5eb-ade9dd6d9dfb", 491 "type": "text/javascript", 492 "exec": [ 493 "" 494 ] 495 } 496 } 497 ], 498 "variable": [ 499 { 500 "id": "822ed4ee-d050-46c7-b30e-eb16335e4de6", 501 "key": "host", 502 "value": "localhost:8080", 503 "type": "string" 504 }, 505 { 506 "id": "89ec47f1-aae0-4872-86b1-4a721967c502", 507 "key": "sessionId", 508 "value": "a4cbd539-e54b-40a8-833a-58885f8397ba", 509 "type": "string" 510 } 511 ] 512 }