unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at testPDSNotExplode 3022 lines 65 kB view raw
1{ 2 "openapi": "3.0.0", 3 "info": { 4 "version": "0.1.0", 5 "title": "WAFRN Backend", 6 "description": "API routes for wafrn social network" 7 }, 8 "paths": { 9 "/api/": { 10 "get": { 11 "description": "", 12 "responses": { 13 "200": { 14 "description": "OK" 15 } 16 } 17 } 18 }, 19 "/api/block": { 20 "post": { 21 "description": "", 22 "parameters": [ 23 { 24 "name": "authorization", 25 "in": "header", 26 "schema": { 27 "type": "string" 28 } 29 } 30 ], 31 "responses": { 32 "200": { 33 "description": "OK" 34 }, 35 "401": { 36 "description": "Unauthorized" 37 } 38 }, 39 "requestBody": { 40 "content": { 41 "application/json": { 42 "schema": { 43 "type": "object", 44 "properties": { 45 "userId": { 46 "example": "any" 47 } 48 } 49 } 50 } 51 } 52 } 53 } 54 }, 55 "/api/unblock": { 56 "post": { 57 "description": "", 58 "parameters": [ 59 { 60 "name": "authorization", 61 "in": "header", 62 "schema": { 63 "type": "string" 64 } 65 } 66 ], 67 "responses": { 68 "200": { 69 "description": "OK" 70 }, 71 "401": { 72 "description": "Unauthorized" 73 } 74 }, 75 "requestBody": { 76 "content": { 77 "application/json": { 78 "schema": { 79 "type": "object", 80 "properties": { 81 "userId": { 82 "example": "any" 83 } 84 } 85 } 86 } 87 } 88 } 89 } 90 }, 91 "/api/myBlocks": { 92 "get": { 93 "description": "", 94 "parameters": [ 95 { 96 "name": "authorization", 97 "in": "header", 98 "schema": { 99 "type": "string" 100 } 101 } 102 ], 103 "responses": { 104 "200": { 105 "description": "OK" 106 }, 107 "401": { 108 "description": "Unauthorized" 109 } 110 } 111 } 112 }, 113 "/api/unblock-user": { 114 "post": { 115 "description": "", 116 "parameters": [ 117 { 118 "name": "id", 119 "in": "query", 120 "schema": { 121 "type": "string" 122 } 123 }, 124 { 125 "name": "authorization", 126 "in": "header", 127 "schema": { 128 "type": "string" 129 } 130 } 131 ], 132 "responses": { 133 "200": { 134 "description": "OK" 135 }, 136 "401": { 137 "description": "Unauthorized" 138 } 139 } 140 } 141 }, 142 "/api/follow": { 143 "post": { 144 "description": "", 145 "parameters": [ 146 { 147 "name": "authorization", 148 "in": "header", 149 "schema": { 150 "type": "string" 151 } 152 } 153 ], 154 "responses": { 155 "200": { 156 "description": "OK" 157 }, 158 "401": { 159 "description": "Unauthorized" 160 }, 161 "403": { 162 "description": "Forbidden" 163 }, 164 "500": { 165 "description": "Internal Server Error" 166 } 167 }, 168 "requestBody": { 169 "content": { 170 "application/json": { 171 "schema": { 172 "type": "object", 173 "properties": { 174 "userId": { 175 "example": "any" 176 } 177 } 178 } 179 } 180 } 181 } 182 } 183 }, 184 "/api/unfollow": { 185 "post": { 186 "description": "", 187 "parameters": [ 188 { 189 "name": "authorization", 190 "in": "header", 191 "schema": { 192 "type": "string" 193 } 194 } 195 ], 196 "responses": { 197 "200": { 198 "description": "OK" 199 }, 200 "401": { 201 "description": "Unauthorized" 202 } 203 }, 204 "requestBody": { 205 "content": { 206 "application/json": { 207 "schema": { 208 "type": "object", 209 "properties": { 210 "userId": { 211 "example": "any" 212 } 213 } 214 } 215 } 216 } 217 } 218 } 219 }, 220 "/api/muteRewoots": { 221 "post": { 222 "description": "", 223 "parameters": [ 224 { 225 "name": "authorization", 226 "in": "header", 227 "schema": { 228 "type": "string" 229 } 230 } 231 ], 232 "responses": { 233 "200": { 234 "description": "OK" 235 }, 236 "400": { 237 "description": "Bad Request" 238 }, 239 "401": { 240 "description": "Unauthorized" 241 } 242 } 243 } 244 }, 245 "/api/uploadMedia": { 246 "post": { 247 "description": "", 248 "parameters": [ 249 { 250 "name": "authorization", 251 "in": "header", 252 "schema": { 253 "type": "string" 254 } 255 } 256 ], 257 "responses": { 258 "200": { 259 "description": "OK" 260 }, 261 "401": { 262 "description": "Unauthorized" 263 } 264 }, 265 "requestBody": { 266 "content": { 267 "application/json": { 268 "schema": { 269 "type": "object", 270 "properties": { 271 "nsfw": { 272 "example": "any" 273 }, 274 "description": { 275 "example": "any" 276 } 277 } 278 } 279 } 280 } 281 } 282 } 283 }, 284 "/api/updateMedia": { 285 "get": { 286 "description": "", 287 "parameters": [ 288 { 289 "name": "id", 290 "in": "query", 291 "schema": { 292 "type": "string" 293 } 294 }, 295 { 296 "name": "NSFW", 297 "in": "query", 298 "schema": { 299 "type": "string" 300 } 301 }, 302 { 303 "name": "description", 304 "in": "query", 305 "schema": { 306 "type": "string" 307 } 308 }, 309 { 310 "name": "authorization", 311 "in": "header", 312 "schema": { 313 "type": "string" 314 } 315 } 316 ], 317 "responses": { 318 "200": { 319 "description": "OK" 320 }, 321 "401": { 322 "description": "Unauthorized" 323 } 324 } 325 } 326 }, 327 "/api/v3/notificationsScroll": { 328 "get": { 329 "description": "", 330 "parameters": [ 331 { 332 "name": "date", 333 "in": "query", 334 "schema": { 335 "type": "string" 336 } 337 }, 338 { 339 "name": "authorization", 340 "in": "header", 341 "schema": { 342 "type": "string" 343 } 344 } 345 ], 346 "responses": { 347 "200": { 348 "description": "OK" 349 }, 350 "401": { 351 "description": "Unauthorized" 352 } 353 } 354 } 355 }, 356 "/api/v2/notificationsCount": { 357 "get": { 358 "description": "", 359 "parameters": [ 360 { 361 "name": "authorization", 362 "in": "header", 363 "schema": { 364 "type": "string" 365 } 366 } 367 ], 368 "responses": { 369 "200": { 370 "description": "OK" 371 }, 372 "401": { 373 "description": "Unauthorized" 374 } 375 } 376 } 377 }, 378 "/api/v3/registerNotificationToken": { 379 "post": { 380 "description": "", 381 "parameters": [ 382 { 383 "name": "authorization", 384 "in": "header", 385 "schema": { 386 "type": "string" 387 } 388 } 389 ], 390 "responses": { 391 "200": { 392 "description": "OK" 393 }, 394 "401": { 395 "description": "Unauthorized" 396 }, 397 "500": { 398 "description": "Internal Server Error" 399 } 400 }, 401 "requestBody": { 402 "content": { 403 "application/json": { 404 "schema": { 405 "type": "object", 406 "properties": { 407 "token": { 408 "example": "any" 409 } 410 } 411 } 412 } 413 } 414 } 415 } 416 }, 417 "/api/v3/unregisterNotificationToken": { 418 "post": { 419 "description": "", 420 "parameters": [ 421 { 422 "name": "authorization", 423 "in": "header", 424 "schema": { 425 "type": "string" 426 } 427 } 428 ], 429 "responses": { 430 "200": { 431 "description": "OK" 432 }, 433 "400": { 434 "description": "Bad Request" 435 }, 436 "401": { 437 "description": "Unauthorized" 438 }, 439 "500": { 440 "description": "Internal Server Error" 441 } 442 }, 443 "requestBody": { 444 "content": { 445 "application/json": { 446 "schema": { 447 "type": "object", 448 "properties": { 449 "token": { 450 "example": "any" 451 } 452 } 453 } 454 } 455 } 456 } 457 } 458 }, 459 "/api/v3/registerUnifiedPushData": { 460 "post": { 461 "description": "", 462 "parameters": [ 463 { 464 "name": "authorization", 465 "in": "header", 466 "schema": { 467 "type": "string" 468 } 469 } 470 ], 471 "responses": { 472 "200": { 473 "description": "OK" 474 }, 475 "400": { 476 "description": "Bad Request" 477 }, 478 "401": { 479 "description": "Unauthorized" 480 }, 481 "500": { 482 "description": "Internal Server Error" 483 } 484 }, 485 "requestBody": { 486 "content": { 487 "application/json": { 488 "schema": { 489 "type": "object", 490 "properties": { 491 "endpoint": { 492 "example": "any" 493 }, 494 "deviceAuth": { 495 "example": "any" 496 }, 497 "devicePublicKey": { 498 "example": "any" 499 } 500 } 501 } 502 } 503 } 504 } 505 } 506 }, 507 "/api/v3/unregisterUnifiedPushData": { 508 "post": { 509 "description": "", 510 "parameters": [ 511 { 512 "name": "authorization", 513 "in": "header", 514 "schema": { 515 "type": "string" 516 } 517 } 518 ], 519 "responses": { 520 "200": { 521 "description": "OK" 522 }, 523 "400": { 524 "description": "Bad Request" 525 }, 526 "401": { 527 "description": "Unauthorized" 528 }, 529 "500": { 530 "description": "Internal Server Error" 531 } 532 }, 533 "requestBody": { 534 "content": { 535 "application/json": { 536 "schema": { 537 "type": "object", 538 "properties": { 539 "endpoint": { 540 "example": "any" 541 } 542 } 543 } 544 } 545 } 546 } 547 } 548 }, 549 "/api/article/{user}/{slug}": { 550 "get": { 551 "description": "Returns the post with the associated id. If no user is proved this defaults to the admin user", 552 "parameters": [ 553 { 554 "name": "user", 555 "in": "path", 556 "required": false, 557 "schema": { 558 "type": "string" 559 } 560 }, 561 { 562 "name": "slug", 563 "in": "path", 564 "required": true, 565 "schema": { 566 "type": "string" 567 } 568 } 569 ], 570 "responses": { 571 "404": { 572 "description": "Not Found" 573 } 574 } 575 } 576 }, 577 "/api/v2/post/{id}": { 578 "get": { 579 "description": "", 580 "parameters": [ 581 { 582 "name": "id", 583 "in": "path", 584 "required": true, 585 "schema": { 586 "type": "string" 587 } 588 } 589 ], 590 "responses": { 591 "200": { 592 "description": "OK" 593 }, 594 "400": { 595 "description": "Bad Request" 596 }, 597 "403": { 598 "description": "Forbidden" 599 }, 600 "404": { 601 "description": "Not Found" 602 }, 603 "500": { 604 "description": "Internal Server Error" 605 } 606 } 607 } 608 }, 609 "/api/v2/descendents/{id}": { 610 "get": { 611 "description": "", 612 "parameters": [ 613 { 614 "name": "id", 615 "in": "path", 616 "required": true, 617 "schema": { 618 "type": "string" 619 } 620 } 621 ], 622 "responses": { 623 "200": { 624 "description": "OK" 625 }, 626 "404": { 627 "description": "Not Found" 628 } 629 } 630 } 631 }, 632 "/api/v2/blog": { 633 "get": { 634 "description": "", 635 "parameters": [ 636 { 637 "name": "id", 638 "in": "query", 639 "schema": { 640 "type": "string" 641 } 642 } 643 ], 644 "responses": { 645 "200": { 646 "description": "OK" 647 }, 648 "403": { 649 "description": "Forbidden" 650 }, 651 "404": { 652 "description": "Not Found" 653 } 654 } 655 } 656 }, 657 "/api/v3/createPost": { 658 "post": { 659 "description": "", 660 "parameters": [ 661 { 662 "name": "authorization", 663 "in": "header", 664 "schema": { 665 "type": "string" 666 } 667 } 668 ], 669 "responses": { 670 "200": { 671 "description": "OK" 672 }, 673 "401": { 674 "description": "Unauthorized" 675 }, 676 "403": { 677 "description": "Forbidden" 678 }, 679 "422": { 680 "description": "Unprocessable Entity" 681 }, 682 "500": { 683 "description": "Internal Server Error" 684 } 685 }, 686 "requestBody": { 687 "content": { 688 "application/json": { 689 "schema": { 690 "type": "object", 691 "properties": { 692 "postToQuote": { 693 "example": "any" 694 }, 695 "parent": { 696 "example": "any" 697 }, 698 "privacy": { 699 "example": "any" 700 }, 701 "content": { 702 "example": "any" 703 }, 704 "content_warning": { 705 "example": "any" 706 }, 707 "medias": { 708 "example": "any" 709 }, 710 "mentionedUserIds": { 711 "example": "any" 712 }, 713 "mentionedUsersIds": { 714 "example": "any" 715 }, 716 "idPostToEdit": { 717 "example": "any" 718 }, 719 "ask": { 720 "example": "any" 721 }, 722 "tags": { 723 "example": "any" 724 } 725 } 726 } 727 } 728 } 729 } 730 } 731 }, 732 "/api/reportPost": { 733 "post": { 734 "description": "", 735 "parameters": [ 736 { 737 "name": "authorization", 738 "in": "header", 739 "schema": { 740 "type": "string" 741 } 742 } 743 ], 744 "responses": { 745 "200": { 746 "description": "OK" 747 }, 748 "401": { 749 "description": "Unauthorized" 750 } 751 }, 752 "requestBody": { 753 "content": { 754 "application/json": { 755 "schema": { 756 "type": "object", 757 "properties": { 758 "userId": { 759 "example": "any" 760 }, 761 "severity": { 762 "example": "any" 763 }, 764 "description": { 765 "example": "any" 766 }, 767 "postId": { 768 "example": "any" 769 } 770 } 771 } 772 } 773 } 774 } 775 } 776 }, 777 "/api/loadRemoteResponses": { 778 "get": { 779 "description": "", 780 "parameters": [ 781 { 782 "name": "id", 783 "in": "query", 784 "schema": { 785 "type": "string" 786 } 787 }, 788 { 789 "name": "authorization", 790 "in": "header", 791 "schema": { 792 "type": "string" 793 } 794 } 795 ], 796 "responses": { 797 "200": { 798 "description": "OK" 799 }, 800 "401": { 801 "description": "Unauthorized" 802 } 803 } 804 } 805 }, 806 "/api/userSearch/{term}": { 807 "get": { 808 "description": "", 809 "parameters": [ 810 { 811 "name": "term", 812 "in": "path", 813 "required": true, 814 "schema": { 815 "type": "string" 816 } 817 }, 818 { 819 "name": "authorization", 820 "in": "header", 821 "schema": { 822 "type": "string" 823 } 824 } 825 ], 826 "responses": { 827 "200": { 828 "description": "OK" 829 }, 830 "401": { 831 "description": "Unauthorized" 832 } 833 } 834 } 835 }, 836 "/api/v2/search": { 837 "get": { 838 "description": "", 839 "parameters": [ 840 { 841 "name": "term", 842 "in": "query", 843 "schema": { 844 "type": "string" 845 } 846 }, 847 { 848 "name": "user", 849 "in": "query", 850 "schema": { 851 "type": "string" 852 } 853 }, 854 { 855 "name": "authorization", 856 "in": "header", 857 "schema": { 858 "type": "string" 859 } 860 } 861 ], 862 "responses": { 863 "200": { 864 "description": "OK" 865 }, 866 "401": { 867 "description": "Unauthorized" 868 } 869 } 870 } 871 }, 872 "/api/register": { 873 "post": { 874 "description": "", 875 "responses": { 876 "200": { 877 "description": "OK" 878 }, 879 "400": { 880 "description": "Bad Request" 881 }, 882 "401": { 883 "description": "Unauthorized" 884 }, 885 "403": { 886 "description": "Forbidden" 887 }, 888 "500": { 889 "description": "Internal Server Error" 890 } 891 }, 892 "requestBody": { 893 "content": { 894 "application/json": { 895 "schema": { 896 "type": "object", 897 "properties": { 898 "url": { 899 "example": "any" 900 }, 901 "email": { 902 "example": "any" 903 }, 904 "birthDate": { 905 "example": "any" 906 }, 907 "description": { 908 "example": "any" 909 }, 910 "name": { 911 "example": "any" 912 }, 913 "nsfw": { 914 "example": "any" 915 }, 916 "password": { 917 "example": "any" 918 } 919 } 920 } 921 } 922 } 923 } 924 } 925 }, 926 "/api/updateCSS": { 927 "post": { 928 "description": "", 929 "parameters": [ 930 { 931 "name": "authorization", 932 "in": "header", 933 "schema": { 934 "type": "string" 935 } 936 } 937 ], 938 "responses": { 939 "200": { 940 "description": "OK" 941 }, 942 "401": { 943 "description": "Unauthorized" 944 }, 945 "500": { 946 "description": "Internal Server Error" 947 } 948 }, 949 "requestBody": { 950 "content": { 951 "application/json": { 952 "schema": { 953 "type": "object", 954 "properties": { 955 "css": { 956 "example": "any" 957 } 958 } 959 } 960 } 961 } 962 } 963 } 964 }, 965 "/api/editProfile": { 966 "post": { 967 "description": "", 968 "parameters": [ 969 { 970 "name": "authorization", 971 "in": "header", 972 "schema": { 973 "type": "string" 974 } 975 } 976 ], 977 "responses": { 978 "200": { 979 "description": "OK" 980 }, 981 "401": { 982 "description": "Unauthorized" 983 } 984 }, 985 "requestBody": { 986 "content": { 987 "application/json": { 988 "schema": { 989 "type": "object", 990 "properties": { 991 "disableEmailNotifications": { 992 "example": "any" 993 }, 994 "where": { 995 "example": "any" 996 } 997 } 998 } 999 } 1000 } 1001 } 1002 } 1003 }, 1004 "/api/editOptions": { 1005 "post": { 1006 "description": "", 1007 "parameters": [ 1008 { 1009 "name": "authorization", 1010 "in": "header", 1011 "schema": { 1012 "type": "string" 1013 } 1014 } 1015 ], 1016 "responses": { 1017 "200": { 1018 "description": "OK" 1019 }, 1020 "401": { 1021 "description": "Unauthorized" 1022 } 1023 }, 1024 "requestBody": { 1025 "content": { 1026 "application/json": { 1027 "schema": { 1028 "type": "object", 1029 "properties": { 1030 "options": { 1031 "example": "any" 1032 } 1033 } 1034 } 1035 } 1036 } 1037 } 1038 } 1039 }, 1040 "/api/forgotPassword": { 1041 "post": { 1042 "description": "", 1043 "responses": { 1044 "200": { 1045 "description": "OK" 1046 } 1047 }, 1048 "requestBody": { 1049 "content": { 1050 "application/json": { 1051 "schema": { 1052 "type": "object", 1053 "properties": { 1054 "email": { 1055 "example": "any" 1056 } 1057 } 1058 } 1059 } 1060 } 1061 } 1062 } 1063 }, 1064 "/api/activateUser": { 1065 "post": { 1066 "description": "", 1067 "responses": { 1068 "200": { 1069 "description": "OK" 1070 } 1071 }, 1072 "requestBody": { 1073 "content": { 1074 "application/json": { 1075 "schema": { 1076 "type": "object", 1077 "properties": { 1078 "email": { 1079 "example": "any" 1080 }, 1081 "code": { 1082 "example": "any" 1083 } 1084 } 1085 } 1086 } 1087 } 1088 } 1089 } 1090 }, 1091 "/api/resetPassword": { 1092 "post": { 1093 "description": "", 1094 "responses": { 1095 "200": { 1096 "description": "OK" 1097 } 1098 }, 1099 "requestBody": { 1100 "content": { 1101 "application/json": { 1102 "schema": { 1103 "type": "object", 1104 "properties": { 1105 "code": { 1106 "example": "any" 1107 }, 1108 "password": { 1109 "example": "any" 1110 }, 1111 "email": { 1112 "example": "any" 1113 } 1114 } 1115 } 1116 } 1117 } 1118 } 1119 } 1120 }, 1121 "/api/login": { 1122 "post": { 1123 "description": "", 1124 "responses": { 1125 "200": { 1126 "description": "OK" 1127 } 1128 }, 1129 "requestBody": { 1130 "content": { 1131 "application/json": { 1132 "schema": { 1133 "type": "object", 1134 "properties": { 1135 "password": { 1136 "example": "any" 1137 }, 1138 "email": { 1139 "example": "any" 1140 } 1141 } 1142 } 1143 } 1144 } 1145 } 1146 } 1147 }, 1148 "/api/login/mfa": { 1149 "post": { 1150 "description": "", 1151 "responses": { 1152 "200": { 1153 "description": "OK" 1154 } 1155 } 1156 } 1157 }, 1158 "/api/user/mfa": { 1159 "get": { 1160 "description": "", 1161 "parameters": [ 1162 { 1163 "name": "authorization", 1164 "in": "header", 1165 "schema": { 1166 "type": "string" 1167 } 1168 } 1169 ], 1170 "responses": { 1171 "200": { 1172 "description": "OK" 1173 }, 1174 "401": { 1175 "description": "Unauthorized" 1176 }, 1177 "500": { 1178 "description": "Internal Server Error" 1179 } 1180 } 1181 }, 1182 "post": { 1183 "description": "", 1184 "parameters": [ 1185 { 1186 "name": "authorization", 1187 "in": "header", 1188 "schema": { 1189 "type": "string" 1190 } 1191 } 1192 ], 1193 "responses": { 1194 "200": { 1195 "description": "OK" 1196 }, 1197 "400": { 1198 "description": "Bad Request" 1199 }, 1200 "401": { 1201 "description": "Unauthorized" 1202 }, 1203 "500": { 1204 "description": "Internal Server Error" 1205 } 1206 } 1207 } 1208 }, 1209 "/api/user/mfa/{id}/verify": { 1210 "post": { 1211 "description": "", 1212 "parameters": [ 1213 { 1214 "name": "id", 1215 "in": "path", 1216 "required": true, 1217 "schema": { 1218 "type": "string" 1219 } 1220 }, 1221 { 1222 "name": "authorization", 1223 "in": "header", 1224 "schema": { 1225 "type": "string" 1226 } 1227 } 1228 ], 1229 "responses": { 1230 "200": { 1231 "description": "OK" 1232 }, 1233 "400": { 1234 "description": "Bad Request" 1235 }, 1236 "401": { 1237 "description": "Unauthorized" 1238 }, 1239 "500": { 1240 "description": "Internal Server Error" 1241 } 1242 } 1243 } 1244 }, 1245 "/api/user/mfa/{id}": { 1246 "delete": { 1247 "description": "", 1248 "parameters": [ 1249 { 1250 "name": "id", 1251 "in": "path", 1252 "required": true, 1253 "schema": { 1254 "type": "string" 1255 } 1256 }, 1257 { 1258 "name": "authorization", 1259 "in": "header", 1260 "schema": { 1261 "type": "string" 1262 } 1263 } 1264 ], 1265 "responses": { 1266 "200": { 1267 "description": "OK" 1268 }, 1269 "400": { 1270 "description": "Bad Request" 1271 }, 1272 "401": { 1273 "description": "Unauthorized" 1274 } 1275 } 1276 } 1277 }, 1278 "/api/user": { 1279 "get": { 1280 "description": "", 1281 "parameters": [ 1282 { 1283 "name": "id", 1284 "in": "query", 1285 "schema": { 1286 "type": "string" 1287 } 1288 } 1289 ], 1290 "responses": { 1291 "200": { 1292 "description": "OK" 1293 }, 1294 "404": { 1295 "description": "Not Found" 1296 } 1297 } 1298 } 1299 }, 1300 "/api/my-ui-options": { 1301 "get": { 1302 "description": "", 1303 "parameters": [ 1304 { 1305 "name": "authorization", 1306 "in": "header", 1307 "schema": { 1308 "type": "string" 1309 } 1310 } 1311 ], 1312 "responses": { 1313 "200": { 1314 "description": "OK" 1315 }, 1316 "401": { 1317 "description": "Unauthorized" 1318 } 1319 } 1320 } 1321 }, 1322 "/api/v2/enable-bluesky": { 1323 "post": { 1324 "description": "", 1325 "parameters": [ 1326 { 1327 "name": "authorization", 1328 "in": "header", 1329 "schema": { 1330 "type": "string" 1331 } 1332 } 1333 ], 1334 "responses": { 1335 "200": { 1336 "description": "OK" 1337 }, 1338 "400": { 1339 "description": "Bad Request" 1340 }, 1341 "401": { 1342 "description": "Unauthorized" 1343 }, 1344 "404": { 1345 "description": "Not Found" 1346 }, 1347 "500": { 1348 "description": "Internal Server Error" 1349 } 1350 }, 1351 "requestBody": { 1352 "content": { 1353 "application/json": { 1354 "schema": { 1355 "type": "object", 1356 "properties": { 1357 "password": { 1358 "example": "any" 1359 } 1360 } 1361 } 1362 } 1363 } 1364 } 1365 } 1366 }, 1367 "/api/user/deleteFollow/{id}": { 1368 "get": { 1369 "description": "", 1370 "parameters": [ 1371 { 1372 "name": "id", 1373 "in": "path", 1374 "required": true, 1375 "schema": { 1376 "type": "string" 1377 } 1378 }, 1379 { 1380 "name": "authorization", 1381 "in": "header", 1382 "schema": { 1383 "type": "string" 1384 } 1385 } 1386 ], 1387 "responses": { 1388 "200": { 1389 "description": "OK" 1390 }, 1391 "401": { 1392 "description": "Unauthorized" 1393 }, 1394 "500": { 1395 "description": "Internal Server Error" 1396 } 1397 } 1398 } 1399 }, 1400 "/api/user/approveFollow/{id}": { 1401 "get": { 1402 "description": "", 1403 "parameters": [ 1404 { 1405 "name": "id", 1406 "in": "path", 1407 "required": true, 1408 "schema": { 1409 "type": "string" 1410 } 1411 }, 1412 { 1413 "name": "authorization", 1414 "in": "header", 1415 "schema": { 1416 "type": "string" 1417 } 1418 } 1419 ], 1420 "responses": { 1421 "200": { 1422 "description": "OK" 1423 }, 1424 "401": { 1425 "description": "Unauthorized" 1426 }, 1427 "500": { 1428 "description": "Internal Server Error" 1429 } 1430 } 1431 } 1432 }, 1433 "/api/user/{url}/follows": { 1434 "get": { 1435 "description": "", 1436 "parameters": [ 1437 { 1438 "name": "url", 1439 "in": "path", 1440 "required": true, 1441 "schema": { 1442 "type": "string" 1443 } 1444 }, 1445 { 1446 "name": "authorization", 1447 "in": "header", 1448 "schema": { 1449 "type": "string" 1450 } 1451 } 1452 ], 1453 "responses": { 1454 "200": { 1455 "description": "OK" 1456 }, 1457 "401": { 1458 "description": "Unauthorized" 1459 }, 1460 "404": { 1461 "description": "Not Found" 1462 } 1463 } 1464 } 1465 }, 1466 "/api/user/myAsks": { 1467 "get": { 1468 "description": "", 1469 "parameters": [ 1470 { 1471 "name": "answered", 1472 "in": "query", 1473 "schema": { 1474 "type": "string" 1475 } 1476 }, 1477 { 1478 "name": "authorization", 1479 "in": "header", 1480 "schema": { 1481 "type": "string" 1482 } 1483 } 1484 ], 1485 "responses": { 1486 "200": { 1487 "description": "OK" 1488 }, 1489 "401": { 1490 "description": "Unauthorized" 1491 } 1492 } 1493 } 1494 }, 1495 "/api/user/{url}/ask": { 1496 "post": { 1497 "description": "", 1498 "parameters": [ 1499 { 1500 "name": "url", 1501 "in": "path", 1502 "required": true, 1503 "schema": { 1504 "type": "string" 1505 } 1506 } 1507 ], 1508 "responses": { 1509 "200": { 1510 "description": "OK" 1511 }, 1512 "429": { 1513 "description": "Too Many Requests" 1514 }, 1515 "500": { 1516 "description": "Internal Server Error" 1517 } 1518 }, 1519 "requestBody": { 1520 "content": { 1521 "application/json": { 1522 "schema": { 1523 "type": "object", 1524 "properties": { 1525 "anonymous": { 1526 "example": "any" 1527 }, 1528 "question": { 1529 "example": "any" 1530 } 1531 } 1532 } 1533 } 1534 } 1535 } 1536 } 1537 }, 1538 "/api/user/ignoreAsk": { 1539 "post": { 1540 "description": "", 1541 "parameters": [ 1542 { 1543 "name": "authorization", 1544 "in": "header", 1545 "schema": { 1546 "type": "string" 1547 } 1548 } 1549 ], 1550 "responses": { 1551 "200": { 1552 "description": "OK" 1553 }, 1554 "401": { 1555 "description": "Unauthorized" 1556 } 1557 }, 1558 "requestBody": { 1559 "content": { 1560 "application/json": { 1561 "schema": { 1562 "type": "object", 1563 "properties": { 1564 "id": { 1565 "example": "any" 1566 } 1567 } 1568 } 1569 } 1570 } 1571 } 1572 } 1573 }, 1574 "/api/user/bookmarkPost": { 1575 "post": { 1576 "description": "", 1577 "parameters": [ 1578 { 1579 "name": "authorization", 1580 "in": "header", 1581 "schema": { 1582 "type": "string" 1583 } 1584 } 1585 ], 1586 "responses": { 1587 "200": { 1588 "description": "OK" 1589 }, 1590 "401": { 1591 "description": "Unauthorized" 1592 } 1593 }, 1594 "requestBody": { 1595 "content": { 1596 "application/json": { 1597 "schema": { 1598 "type": "object", 1599 "properties": { 1600 "postId": { 1601 "example": "any" 1602 } 1603 } 1604 } 1605 } 1606 } 1607 } 1608 } 1609 }, 1610 "/api/user/unbookmarkPost": { 1611 "post": { 1612 "description": "", 1613 "parameters": [ 1614 { 1615 "name": "authorization", 1616 "in": "header", 1617 "schema": { 1618 "type": "string" 1619 } 1620 } 1621 ], 1622 "responses": { 1623 "200": { 1624 "description": "OK" 1625 }, 1626 "401": { 1627 "description": "Unauthorized" 1628 } 1629 }, 1630 "requestBody": { 1631 "content": { 1632 "application/json": { 1633 "schema": { 1634 "type": "object", 1635 "properties": { 1636 "postId": { 1637 "example": "any" 1638 } 1639 } 1640 } 1641 } 1642 } 1643 } 1644 } 1645 }, 1646 "/api/user/selfDeactivate": { 1647 "post": { 1648 "description": "", 1649 "parameters": [ 1650 { 1651 "name": "authorization", 1652 "in": "header", 1653 "schema": { 1654 "type": "string" 1655 } 1656 } 1657 ], 1658 "responses": { 1659 "200": { 1660 "description": "OK" 1661 }, 1662 "401": { 1663 "description": "Unauthorized" 1664 } 1665 }, 1666 "requestBody": { 1667 "content": { 1668 "application/json": { 1669 "schema": { 1670 "type": "object", 1671 "properties": { 1672 "password": { 1673 "example": "any" 1674 } 1675 } 1676 } 1677 } 1678 } 1679 } 1680 } 1681 }, 1682 "/api/user/migrateOut": { 1683 "post": { 1684 "description": "", 1685 "parameters": [ 1686 { 1687 "name": "authorization", 1688 "in": "header", 1689 "schema": { 1690 "type": "string" 1691 } 1692 } 1693 ], 1694 "responses": { 1695 "200": { 1696 "description": "OK" 1697 }, 1698 "401": { 1699 "description": "Unauthorized" 1700 }, 1701 "500": { 1702 "description": "Internal Server Error" 1703 } 1704 }, 1705 "requestBody": { 1706 "content": { 1707 "application/json": { 1708 "schema": { 1709 "type": "object", 1710 "properties": { 1711 "target": { 1712 "example": "any" 1713 } 1714 } 1715 } 1716 } 1717 } 1718 } 1719 } 1720 }, 1721 "/api/admin/server-list": { 1722 "get": { 1723 "description": "", 1724 "parameters": [ 1725 { 1726 "name": "authorization", 1727 "in": "header", 1728 "schema": { 1729 "type": "string" 1730 } 1731 } 1732 ], 1733 "responses": { 1734 "200": { 1735 "description": "OK" 1736 }, 1737 "401": { 1738 "description": "Unauthorized" 1739 } 1740 } 1741 } 1742 }, 1743 "/api/admin/server-update": { 1744 "post": { 1745 "description": "", 1746 "parameters": [ 1747 { 1748 "name": "authorization", 1749 "in": "header", 1750 "schema": { 1751 "type": "string" 1752 } 1753 } 1754 ], 1755 "responses": { 1756 "200": { 1757 "description": "OK" 1758 }, 1759 "401": { 1760 "description": "Unauthorized" 1761 } 1762 } 1763 } 1764 }, 1765 "/api/admin/userBlockList": { 1766 "get": { 1767 "description": "", 1768 "parameters": [ 1769 { 1770 "name": "authorization", 1771 "in": "header", 1772 "schema": { 1773 "type": "string" 1774 } 1775 } 1776 ], 1777 "responses": { 1778 "200": { 1779 "description": "OK" 1780 }, 1781 "401": { 1782 "description": "Unauthorized" 1783 } 1784 } 1785 } 1786 }, 1787 "/api/admin/reportCount": { 1788 "get": { 1789 "description": "", 1790 "parameters": [ 1791 { 1792 "name": "authorization", 1793 "in": "header", 1794 "schema": { 1795 "type": "string" 1796 } 1797 } 1798 ], 1799 "responses": { 1800 "200": { 1801 "description": "OK" 1802 }, 1803 "401": { 1804 "description": "Unauthorized" 1805 } 1806 } 1807 } 1808 }, 1809 "/api/admin/reportList": { 1810 "get": { 1811 "description": "", 1812 "parameters": [ 1813 { 1814 "name": "authorization", 1815 "in": "header", 1816 "schema": { 1817 "type": "string" 1818 } 1819 } 1820 ], 1821 "responses": { 1822 "200": { 1823 "description": "OK" 1824 }, 1825 "401": { 1826 "description": "Unauthorized" 1827 } 1828 } 1829 } 1830 }, 1831 "/api/admin/closeReport": { 1832 "post": { 1833 "description": "", 1834 "parameters": [ 1835 { 1836 "name": "authorization", 1837 "in": "header", 1838 "schema": { 1839 "type": "string" 1840 } 1841 } 1842 ], 1843 "responses": { 1844 "200": { 1845 "description": "OK" 1846 }, 1847 "401": { 1848 "description": "Unauthorized" 1849 } 1850 }, 1851 "requestBody": { 1852 "content": { 1853 "application/json": { 1854 "schema": { 1855 "type": "object", 1856 "properties": { 1857 "id": { 1858 "example": "any" 1859 } 1860 } 1861 } 1862 } 1863 } 1864 } 1865 } 1866 }, 1867 "/api/admin/banUser": { 1868 "post": { 1869 "description": "", 1870 "parameters": [ 1871 { 1872 "name": "authorization", 1873 "in": "header", 1874 "schema": { 1875 "type": "string" 1876 } 1877 } 1878 ], 1879 "responses": { 1880 "200": { 1881 "description": "OK" 1882 }, 1883 "401": { 1884 "description": "Unauthorized" 1885 } 1886 }, 1887 "requestBody": { 1888 "content": { 1889 "application/json": { 1890 "schema": { 1891 "type": "object", 1892 "properties": { 1893 "id": { 1894 "example": "any" 1895 } 1896 } 1897 } 1898 } 1899 } 1900 } 1901 } 1902 }, 1903 "/api/admin/ignoreReport": { 1904 "post": { 1905 "description": "", 1906 "parameters": [ 1907 { 1908 "name": "authorization", 1909 "in": "header", 1910 "schema": { 1911 "type": "string" 1912 } 1913 } 1914 ], 1915 "responses": { 1916 "200": { 1917 "description": "OK" 1918 }, 1919 "401": { 1920 "description": "Unauthorized" 1921 } 1922 }, 1923 "requestBody": { 1924 "content": { 1925 "application/json": { 1926 "schema": { 1927 "type": "object", 1928 "properties": { 1929 "id": { 1930 "example": "any" 1931 } 1932 } 1933 } 1934 } 1935 } 1936 } 1937 } 1938 }, 1939 "/api/admin/getBannedUsers": { 1940 "get": { 1941 "description": "", 1942 "parameters": [ 1943 { 1944 "name": "authorization", 1945 "in": "header", 1946 "schema": { 1947 "type": "string" 1948 } 1949 } 1950 ], 1951 "responses": { 1952 "200": { 1953 "description": "OK" 1954 }, 1955 "401": { 1956 "description": "Unauthorized" 1957 } 1958 } 1959 } 1960 }, 1961 "/api/admin/unbanUser": { 1962 "post": { 1963 "description": "", 1964 "parameters": [ 1965 { 1966 "name": "authorization", 1967 "in": "header", 1968 "schema": { 1969 "type": "string" 1970 } 1971 } 1972 ], 1973 "responses": { 1974 "200": { 1975 "description": "OK" 1976 }, 1977 "401": { 1978 "description": "Unauthorized" 1979 } 1980 }, 1981 "requestBody": { 1982 "content": { 1983 "application/json": { 1984 "schema": { 1985 "type": "object", 1986 "properties": { 1987 "id": { 1988 "example": "any" 1989 } 1990 } 1991 } 1992 } 1993 } 1994 } 1995 } 1996 }, 1997 "/api/admin/getPendingApprovalUsers": { 1998 "get": { 1999 "description": "", 2000 "parameters": [ 2001 { 2002 "name": "authorization", 2003 "in": "header", 2004 "schema": { 2005 "type": "string" 2006 } 2007 } 2008 ], 2009 "responses": { 2010 "200": { 2011 "description": "OK" 2012 }, 2013 "401": { 2014 "description": "Unauthorized" 2015 } 2016 } 2017 } 2018 }, 2019 "/api/admin/activateUser": { 2020 "post": { 2021 "description": "", 2022 "parameters": [ 2023 { 2024 "name": "authorization", 2025 "in": "header", 2026 "schema": { 2027 "type": "string" 2028 } 2029 } 2030 ], 2031 "responses": { 2032 "200": { 2033 "description": "OK" 2034 }, 2035 "401": { 2036 "description": "Unauthorized" 2037 } 2038 }, 2039 "requestBody": { 2040 "content": { 2041 "application/json": { 2042 "schema": { 2043 "type": "object", 2044 "properties": { 2045 "id": { 2046 "example": "any" 2047 } 2048 } 2049 } 2050 } 2051 } 2052 } 2053 } 2054 }, 2055 "/api/admin/userUsedVPN": { 2056 "post": { 2057 "description": "", 2058 "parameters": [ 2059 { 2060 "name": "authorization", 2061 "in": "header", 2062 "schema": { 2063 "type": "string" 2064 } 2065 } 2066 ], 2067 "responses": { 2068 "200": { 2069 "description": "OK" 2070 }, 2071 "401": { 2072 "description": "Unauthorized" 2073 } 2074 }, 2075 "requestBody": { 2076 "content": { 2077 "application/json": { 2078 "schema": { 2079 "type": "object", 2080 "properties": { 2081 "id": { 2082 "example": "any" 2083 } 2084 } 2085 } 2086 } 2087 } 2088 } 2089 } 2090 }, 2091 "/api/admin/notActivateAndSendEmail": { 2092 "post": { 2093 "description": "", 2094 "parameters": [ 2095 { 2096 "name": "authorization", 2097 "in": "header", 2098 "schema": { 2099 "type": "string" 2100 } 2101 } 2102 ], 2103 "responses": { 2104 "200": { 2105 "description": "OK" 2106 }, 2107 "401": { 2108 "description": "Unauthorized" 2109 } 2110 }, 2111 "requestBody": { 2112 "content": { 2113 "application/json": { 2114 "schema": { 2115 "type": "object", 2116 "properties": { 2117 "id": { 2118 "example": "any" 2119 } 2120 } 2121 } 2122 } 2123 } 2124 } 2125 } 2126 }, 2127 "/api/blockUserServer": { 2128 "post": { 2129 "description": "", 2130 "parameters": [ 2131 { 2132 "name": "authorization", 2133 "in": "header", 2134 "schema": { 2135 "type": "string" 2136 } 2137 } 2138 ], 2139 "responses": { 2140 "200": { 2141 "description": "OK" 2142 }, 2143 "401": { 2144 "description": "Unauthorized" 2145 } 2146 }, 2147 "requestBody": { 2148 "content": { 2149 "application/json": { 2150 "schema": { 2151 "type": "object", 2152 "properties": { 2153 "userId": { 2154 "example": "any" 2155 } 2156 } 2157 } 2158 } 2159 } 2160 } 2161 } 2162 }, 2163 "/api/unblockUserServer": { 2164 "post": { 2165 "description": "", 2166 "parameters": [ 2167 { 2168 "name": "authorization", 2169 "in": "header", 2170 "schema": { 2171 "type": "string" 2172 } 2173 } 2174 ], 2175 "responses": { 2176 "200": { 2177 "description": "OK" 2178 }, 2179 "401": { 2180 "description": "Unauthorized" 2181 } 2182 }, 2183 "requestBody": { 2184 "content": { 2185 "application/json": { 2186 "schema": { 2187 "type": "object", 2188 "properties": { 2189 "userId": { 2190 "example": "any" 2191 } 2192 } 2193 } 2194 } 2195 } 2196 } 2197 } 2198 }, 2199 "/api/myServerBlocks": { 2200 "get": { 2201 "description": "", 2202 "parameters": [ 2203 { 2204 "name": "authorization", 2205 "in": "header", 2206 "schema": { 2207 "type": "string" 2208 } 2209 } 2210 ], 2211 "responses": { 2212 "200": { 2213 "description": "OK" 2214 }, 2215 "401": { 2216 "description": "Unauthorized" 2217 } 2218 } 2219 } 2220 }, 2221 "/api/unblockServer": { 2222 "post": { 2223 "description": "", 2224 "parameters": [ 2225 { 2226 "name": "id", 2227 "in": "query", 2228 "schema": { 2229 "type": "string" 2230 } 2231 }, 2232 { 2233 "name": "authorization", 2234 "in": "header", 2235 "schema": { 2236 "type": "string" 2237 } 2238 } 2239 ], 2240 "responses": { 2241 "200": { 2242 "description": "OK" 2243 }, 2244 "401": { 2245 "description": "Unauthorized" 2246 } 2247 } 2248 } 2249 }, 2250 "/api/v2/dashboard": { 2251 "get": { 2252 "description": "", 2253 "parameters": [ 2254 { 2255 "name": "level", 2256 "in": "query", 2257 "schema": { 2258 "type": "string" 2259 } 2260 } 2261 ], 2262 "responses": { 2263 "200": { 2264 "description": "OK" 2265 }, 2266 "401": { 2267 "description": "Unauthorized" 2268 } 2269 } 2270 } 2271 }, 2272 "/api/like": { 2273 "post": { 2274 "description": "", 2275 "parameters": [ 2276 { 2277 "name": "authorization", 2278 "in": "header", 2279 "schema": { 2280 "type": "string" 2281 } 2282 } 2283 ], 2284 "responses": { 2285 "200": { 2286 "description": "OK" 2287 }, 2288 "401": { 2289 "description": "Unauthorized" 2290 }, 2291 "403": { 2292 "description": "Forbidden" 2293 } 2294 }, 2295 "requestBody": { 2296 "content": { 2297 "application/json": { 2298 "schema": { 2299 "type": "object", 2300 "properties": { 2301 "postId": { 2302 "example": "any" 2303 } 2304 } 2305 } 2306 } 2307 } 2308 } 2309 } 2310 }, 2311 "/api/unlike": { 2312 "post": { 2313 "description": "", 2314 "parameters": [ 2315 { 2316 "name": "authorization", 2317 "in": "header", 2318 "schema": { 2319 "type": "string" 2320 } 2321 } 2322 ], 2323 "responses": { 2324 "200": { 2325 "description": "OK" 2326 }, 2327 "401": { 2328 "description": "Unauthorized" 2329 } 2330 }, 2331 "requestBody": { 2332 "content": { 2333 "application/json": { 2334 "schema": { 2335 "type": "object", 2336 "properties": { 2337 "postId": { 2338 "example": "any" 2339 } 2340 } 2341 } 2342 } 2343 } 2344 } 2345 } 2346 }, 2347 "/api/mute": { 2348 "post": { 2349 "description": "", 2350 "parameters": [ 2351 { 2352 "name": "authorization", 2353 "in": "header", 2354 "schema": { 2355 "type": "string" 2356 } 2357 } 2358 ], 2359 "responses": { 2360 "200": { 2361 "description": "OK" 2362 }, 2363 "401": { 2364 "description": "Unauthorized" 2365 } 2366 }, 2367 "requestBody": { 2368 "content": { 2369 "application/json": { 2370 "schema": { 2371 "type": "object", 2372 "properties": { 2373 "userId": { 2374 "example": "any" 2375 } 2376 } 2377 } 2378 } 2379 } 2380 } 2381 } 2382 }, 2383 "/api/unmute": { 2384 "post": { 2385 "description": "", 2386 "parameters": [ 2387 { 2388 "name": "authorization", 2389 "in": "header", 2390 "schema": { 2391 "type": "string" 2392 } 2393 } 2394 ], 2395 "responses": { 2396 "200": { 2397 "description": "OK" 2398 }, 2399 "401": { 2400 "description": "Unauthorized" 2401 } 2402 }, 2403 "requestBody": { 2404 "content": { 2405 "application/json": { 2406 "schema": { 2407 "type": "object", 2408 "properties": { 2409 "userId": { 2410 "example": "any" 2411 } 2412 } 2413 } 2414 } 2415 } 2416 } 2417 } 2418 }, 2419 "/api/myMutes": { 2420 "get": { 2421 "description": "", 2422 "parameters": [ 2423 { 2424 "name": "authorization", 2425 "in": "header", 2426 "schema": { 2427 "type": "string" 2428 } 2429 } 2430 ], 2431 "responses": { 2432 "200": { 2433 "description": "OK" 2434 }, 2435 "401": { 2436 "description": "Unauthorized" 2437 } 2438 } 2439 } 2440 }, 2441 "/api/unmute-user": { 2442 "post": { 2443 "description": "", 2444 "parameters": [ 2445 { 2446 "name": "id", 2447 "in": "query", 2448 "schema": { 2449 "type": "string" 2450 } 2451 }, 2452 { 2453 "name": "authorization", 2454 "in": "header", 2455 "schema": { 2456 "type": "string" 2457 } 2458 } 2459 ], 2460 "responses": { 2461 "200": { 2462 "description": "OK" 2463 }, 2464 "401": { 2465 "description": "Unauthorized" 2466 } 2467 } 2468 } 2469 }, 2470 "/api/deletePost": { 2471 "delete": { 2472 "description": "", 2473 "parameters": [ 2474 { 2475 "name": "id", 2476 "in": "query", 2477 "schema": { 2478 "type": "string" 2479 } 2480 }, 2481 { 2482 "name": "authorization", 2483 "in": "header", 2484 "schema": { 2485 "type": "string" 2486 } 2487 } 2488 ], 2489 "responses": { 2490 "200": { 2491 "description": "OK" 2492 }, 2493 "401": { 2494 "description": "Unauthorized" 2495 }, 2496 "500": { 2497 "description": "Internal Server Error" 2498 } 2499 } 2500 } 2501 }, 2502 "/api/deleteRewoots": { 2503 "delete": { 2504 "description": "", 2505 "parameters": [ 2506 { 2507 "name": "id", 2508 "in": "query", 2509 "schema": { 2510 "type": "string" 2511 } 2512 }, 2513 { 2514 "name": "authorization", 2515 "in": "header", 2516 "schema": { 2517 "type": "string" 2518 } 2519 } 2520 ], 2521 "responses": { 2522 "200": { 2523 "description": "OK" 2524 }, 2525 "401": { 2526 "description": "Unauthorized" 2527 } 2528 } 2529 } 2530 }, 2531 "/api/emojiReact": { 2532 "post": { 2533 "description": "", 2534 "parameters": [ 2535 { 2536 "name": "authorization", 2537 "in": "header", 2538 "schema": { 2539 "type": "string" 2540 } 2541 } 2542 ], 2543 "responses": { 2544 "200": { 2545 "description": "OK" 2546 }, 2547 "400": { 2548 "description": "Bad Request" 2549 }, 2550 "401": { 2551 "description": "Unauthorized" 2552 }, 2553 "500": { 2554 "description": "Internal Server Error" 2555 } 2556 }, 2557 "requestBody": { 2558 "content": { 2559 "application/json": { 2560 "schema": { 2561 "type": "object", 2562 "properties": { 2563 "postId": { 2564 "example": "any" 2565 }, 2566 "emojiName": { 2567 "example": "any" 2568 }, 2569 "undo": { 2570 "example": "any" 2571 } 2572 } 2573 } 2574 } 2575 } 2576 } 2577 } 2578 }, 2579 "/api/admin/addEmoji": { 2580 "post": { 2581 "description": "", 2582 "parameters": [ 2583 { 2584 "name": "authorization", 2585 "in": "header", 2586 "schema": { 2587 "type": "string" 2588 } 2589 } 2590 ], 2591 "responses": { 2592 "200": { 2593 "description": "OK" 2594 }, 2595 "401": { 2596 "description": "Unauthorized" 2597 }, 2598 "500": { 2599 "description": "Internal Server Error" 2600 } 2601 } 2602 } 2603 }, 2604 "/api/forum/{id}": { 2605 "get": { 2606 "description": "", 2607 "parameters": [ 2608 { 2609 "name": "id", 2610 "in": "path", 2611 "required": true, 2612 "schema": { 2613 "type": "string" 2614 } 2615 } 2616 ], 2617 "responses": { 2618 "200": { 2619 "description": "OK" 2620 }, 2621 "404": { 2622 "description": "Not Found" 2623 } 2624 } 2625 } 2626 }, 2627 "/api/cache": { 2628 "get": { 2629 "description": "", 2630 "responses": { 2631 "200": { 2632 "description": "OK" 2633 }, 2634 "400": { 2635 "description": "Bad Request" 2636 }, 2637 "404": { 2638 "description": "Not Found" 2639 }, 2640 "500": { 2641 "description": "Internal Server Error" 2642 } 2643 } 2644 } 2645 }, 2646 "/api/linkPreview": { 2647 "get": { 2648 "description": "", 2649 "responses": { 2650 "200": { 2651 "description": "OK" 2652 } 2653 } 2654 } 2655 }, 2656 "/api/v2/unsilencePost": { 2657 "post": { 2658 "description": "", 2659 "parameters": [ 2660 { 2661 "name": "authorization", 2662 "in": "header", 2663 "schema": { 2664 "type": "string" 2665 } 2666 } 2667 ], 2668 "responses": { 2669 "200": { 2670 "description": "OK" 2671 }, 2672 "401": { 2673 "description": "Unauthorized" 2674 } 2675 }, 2676 "requestBody": { 2677 "content": { 2678 "application/json": { 2679 "schema": { 2680 "type": "object", 2681 "properties": { 2682 "postId": { 2683 "example": "any" 2684 } 2685 } 2686 } 2687 } 2688 } 2689 } 2690 } 2691 }, 2692 "/api/v2/silencePost": { 2693 "post": { 2694 "description": "", 2695 "parameters": [ 2696 { 2697 "name": "authorization", 2698 "in": "header", 2699 "schema": { 2700 "type": "string" 2701 } 2702 } 2703 ], 2704 "responses": { 2705 "200": { 2706 "description": "OK" 2707 }, 2708 "401": { 2709 "description": "Unauthorized" 2710 } 2711 }, 2712 "requestBody": { 2713 "content": { 2714 "application/json": { 2715 "schema": { 2716 "type": "object", 2717 "properties": { 2718 "postId": { 2719 "example": "any" 2720 }, 2721 "superMute": { 2722 "example": "any" 2723 } 2724 } 2725 } 2726 } 2727 } 2728 } 2729 } 2730 }, 2731 "/api/status/workerStats": { 2732 "get": { 2733 "description": "", 2734 "parameters": [ 2735 { 2736 "name": "authorization", 2737 "in": "header", 2738 "schema": { 2739 "type": "string" 2740 } 2741 } 2742 ], 2743 "responses": { 2744 "200": { 2745 "description": "OK" 2746 }, 2747 "401": { 2748 "description": "Unauthorized" 2749 } 2750 } 2751 } 2752 }, 2753 "/api/status/blocks": { 2754 "get": { 2755 "description": "", 2756 "responses": { 2757 "200": { 2758 "description": "OK" 2759 } 2760 } 2761 } 2762 }, 2763 "/api/disableEmailNotifications/{id}/{code}": { 2764 "get": { 2765 "description": "", 2766 "parameters": [ 2767 { 2768 "name": "id", 2769 "in": "path", 2770 "required": true, 2771 "schema": { 2772 "type": "string" 2773 } 2774 }, 2775 { 2776 "name": "code", 2777 "in": "path", 2778 "required": true, 2779 "schema": { 2780 "type": "string" 2781 } 2782 } 2783 ], 2784 "responses": { 2785 "200": { 2786 "description": "OK" 2787 } 2788 } 2789 } 2790 }, 2791 "[/": { 2792 "get": { 2793 "description": "", 2794 "responses": { 2795 "200": { 2796 "description": "OK" 2797 } 2798 } 2799 } 2800 }, 2801 "/post/{id}": { 2802 "get": { 2803 "description": "", 2804 "parameters": [ 2805 { 2806 "name": "id", 2807 "in": "path", 2808 "required": true, 2809 "schema": { 2810 "type": "string" 2811 } 2812 }, 2813 { 2814 "name": "digest", 2815 "in": "header", 2816 "schema": { 2817 "type": "string" 2818 } 2819 }, 2820 { 2821 "name": "user-agent", 2822 "in": "header", 2823 "schema": { 2824 "type": "string" 2825 } 2826 }, 2827 { 2828 "name": "orig-content-type", 2829 "in": "header", 2830 "schema": { 2831 "type": "string" 2832 } 2833 }, 2834 { 2835 "name": "content-type", 2836 "in": "header", 2837 "schema": { 2838 "type": "string" 2839 } 2840 } 2841 ], 2842 "responses": { 2843 "200": { 2844 "description": "OK" 2845 }, 2846 "401": { 2847 "description": "Unauthorized" 2848 }, 2849 "403": { 2850 "description": "Forbidden" 2851 }, 2852 "429": { 2853 "description": "Too Many Requests" 2854 } 2855 } 2856 } 2857 }, 2858 "/blog/{url}/rss": { 2859 "get": { 2860 "description": "", 2861 "parameters": [ 2862 { 2863 "name": "url", 2864 "in": "path", 2865 "required": true, 2866 "schema": { 2867 "type": "string" 2868 } 2869 } 2870 ], 2871 "responses": { 2872 "200": { 2873 "description": "OK" 2874 } 2875 } 2876 } 2877 }, 2878 "/blog/{url}/ask": { 2879 "get": { 2880 "description": "", 2881 "parameters": [ 2882 { 2883 "name": "url", 2884 "in": "path", 2885 "required": true, 2886 "schema": { 2887 "type": "string" 2888 } 2889 } 2890 ], 2891 "responses": { 2892 "200": { 2893 "description": "OK" 2894 } 2895 } 2896 } 2897 }, 2898 "/blog/{url}/{somethingElse}": { 2899 "get": { 2900 "description": "", 2901 "parameters": [ 2902 { 2903 "name": "url", 2904 "in": "path", 2905 "required": true, 2906 "schema": { 2907 "type": "string" 2908 } 2909 }, 2910 { 2911 "name": "somethingElse", 2912 "in": "path", 2913 "required": true, 2914 "schema": { 2915 "type": "string" 2916 } 2917 } 2918 ], 2919 "responses": { 2920 "200": { 2921 "description": "OK" 2922 } 2923 } 2924 } 2925 }, 2926 "/blog/{url}": { 2927 "get": { 2928 "description": "", 2929 "parameters": [ 2930 { 2931 "name": "url", 2932 "in": "path", 2933 "required": true, 2934 "schema": { 2935 "type": "string" 2936 } 2937 } 2938 ], 2939 "responses": { 2940 "200": { 2941 "description": "OK" 2942 } 2943 } 2944 } 2945 }, 2946 "[/fediverse/post/{id}": { 2947 "get": { 2948 "description": "", 2949 "parameters": [ 2950 { 2951 "name": "id", 2952 "in": "path", 2953 "required": true, 2954 "schema": { 2955 "type": "string" 2956 } 2957 }, 2958 { 2959 "name": "digest", 2960 "in": "header", 2961 "schema": { 2962 "type": "string" 2963 } 2964 }, 2965 { 2966 "name": "user-agent", 2967 "in": "header", 2968 "schema": { 2969 "type": "string" 2970 } 2971 }, 2972 { 2973 "name": "orig-content-type", 2974 "in": "header", 2975 "schema": { 2976 "type": "string" 2977 } 2978 }, 2979 { 2980 "name": "content-type", 2981 "in": "header", 2982 "schema": { 2983 "type": "string" 2984 } 2985 } 2986 ], 2987 "responses": { 2988 "200": { 2989 "description": "OK" 2990 }, 2991 "401": { 2992 "description": "Unauthorized" 2993 }, 2994 "403": { 2995 "description": "Forbidden" 2996 }, 2997 "404": { 2998 "description": "Not Found" 2999 }, 3000 "410": { 3001 "description": "Gone" 3002 }, 3003 "429": { 3004 "description": "Too Many Requests" 3005 }, 3006 "500": { 3007 "description": "Internal Server Error" 3008 } 3009 } 3010 } 3011 } 3012 }, 3013 "components": { 3014 "securitySchemes": { 3015 "bearerAuth": { 3016 "type": "http", 3017 "scheme": "bearer", 3018 "bearerFormat": "JWT" 3019 } 3020 } 3021 } 3022}