|
6 | 6 | "description": "Access Forem articles, users and other resources via API.\n For a real-world example of Forem in action, check out [DEV](https://www.dev.to).\n All endpoints can be accessed with the 'api-key' header and a accept header, but\n some of them are accessible publicly without authentication.\n\n Dates and date times, unless otherwise specified, must be in\n the [RFC 3339](https://tools.ietf.org/html/rfc3339) format." |
7 | 7 | }, |
8 | 8 | "paths": { |
9 | | - "/api/articles": { |
| 9 | + "/articles": { |
10 | 10 | "post": { |
11 | 11 | "summary": "Publish article", |
12 | 12 | "tags": ["articles"], |
|
247 | 247 | } |
248 | 248 | } |
249 | 249 | }, |
250 | | - "/api/articles/latest": { |
| 250 | + "/articles/latest": { |
251 | 251 | "get": { |
252 | 252 | "summary": "Published articles sorted by published date", |
253 | 253 | "security": [], |
|
404 | 404 | } |
405 | 405 | } |
406 | 406 | }, |
407 | | - "/api/articles/{id}": { |
| 407 | + "/articles/{id}": { |
408 | 408 | "get": { |
409 | 409 | "summary": "Published article by id", |
410 | 410 | "security": [], |
|
601 | 601 | } |
602 | 602 | } |
603 | 603 | }, |
604 | | - "/api/articles/{username}/{slug}": { |
| 604 | + "/articles/{username}/{slug}": { |
605 | 605 | "get": { |
606 | 606 | "summary": "Published article by path", |
607 | 607 | "security": [], |
|
697 | 697 | } |
698 | 698 | } |
699 | 699 | }, |
700 | | - "/api/articles/me": { |
| 700 | + "/articles/me": { |
701 | 701 | "get": { |
702 | 702 | "summary": "User's articles", |
703 | 703 | "tags": ["articles", "users"], |
|
740 | 740 | } |
741 | 741 | } |
742 | 742 | }, |
743 | | - "/api/articles/me/published": { |
| 743 | + "/articles/me/published": { |
744 | 744 | "get": { |
745 | 745 | "summary": "User's published articles", |
746 | 746 | "tags": ["articles", "users"], |
|
783 | 783 | } |
784 | 784 | } |
785 | 785 | }, |
786 | | - "/api/articles/me/unpublished": { |
| 786 | + "/articles/me/unpublished": { |
787 | 787 | "get": { |
788 | 788 | "summary": "User's unpublished articles", |
789 | 789 | "tags": ["articles", "users"], |
|
826 | 826 | } |
827 | 827 | } |
828 | 828 | }, |
829 | | - "/api/articles/me/all": { |
| 829 | + "/articles/me/all": { |
830 | 830 | "get": { |
831 | 831 | "summary": "User's all articles", |
832 | 832 | "tags": ["articles", "users"], |
|
869 | 869 | } |
870 | 870 | } |
871 | 871 | }, |
872 | | - "/api/articles/{id}/unpublish": { |
| 872 | + "/articles/{id}/unpublish": { |
873 | 873 | "put": { |
874 | 874 | "summary": "Unpublish an article", |
875 | 875 | "tags": ["articles"], |
|
928 | 928 | } |
929 | 929 | } |
930 | 930 | }, |
931 | | - "/api/comments": { |
| 931 | + "/comments": { |
932 | 932 | "get": { |
933 | 933 | "summary": "Comments", |
934 | 934 | "security": [], |
|
1004 | 1004 | } |
1005 | 1005 | } |
1006 | 1006 | }, |
1007 | | - "/api/comments/{id}": { |
| 1007 | + "/comments/{id}": { |
1008 | 1008 | "get": { |
1009 | 1009 | "summary": "Comment by id", |
1010 | 1010 | "security": [], |
|
1062 | 1062 | } |
1063 | 1063 | } |
1064 | 1064 | }, |
1065 | | - "/api/display_ads": { |
| 1065 | + "/display_ads": { |
1066 | 1066 | "get": { |
1067 | 1067 | "summary": "display ads", |
1068 | 1068 | "tags": ["display ads"], |
|
1191 | 1191 | } |
1192 | 1192 | } |
1193 | 1193 | }, |
1194 | | - "/api/display_ads/{id}": { |
| 1194 | + "/display_ads/{id}": { |
1195 | 1195 | "get": { |
1196 | 1196 | "summary": "display ad", |
1197 | 1197 | "tags": ["display ads"], |
|
1355 | 1355 | } |
1356 | 1356 | } |
1357 | 1357 | }, |
1358 | | - "/api/display_ads/{id}/unpublish": { |
| 1358 | + "/display_ads/{id}/unpublish": { |
1359 | 1359 | "put": { |
1360 | 1360 | "summary": "unpublish", |
1361 | 1361 | "tags": ["display ads"], |
|
1403 | 1403 | } |
1404 | 1404 | } |
1405 | 1405 | }, |
1406 | | - "/api/follows/tags": { |
| 1406 | + "/follows/tags": { |
1407 | 1407 | "get": { |
1408 | 1408 | "summary": "Followed Tags", |
1409 | 1409 | "tags": ["followed_tags", "tags"], |
|
1449 | 1449 | } |
1450 | 1450 | } |
1451 | 1451 | }, |
1452 | | - "/api/followers/users": { |
| 1452 | + "/followers/users": { |
1453 | 1453 | "get": { |
1454 | 1454 | "summary": "Followers", |
1455 | 1455 | "tags": ["followers"], |
|
1551 | 1551 | } |
1552 | 1552 | } |
1553 | 1553 | }, |
1554 | | - "/api/organizations/{username}": { |
| 1554 | + "/organizations/{username}": { |
1555 | 1555 | "get": { |
1556 | 1556 | "summary": "An organization", |
1557 | 1557 | "tags": ["organizations"], |
|
1612 | 1612 | } |
1613 | 1613 | } |
1614 | 1614 | }, |
1615 | | - "/api/organizations/{username}/users": { |
| 1615 | + "/organizations/{username}/users": { |
1616 | 1616 | "get": { |
1617 | 1617 | "summary": "Organization's users", |
1618 | 1618 | "tags": ["organizations", "users"], |
|
1691 | 1691 | } |
1692 | 1692 | } |
1693 | 1693 | }, |
1694 | | - "/api/organizations/{username}/articles": { |
| 1694 | + "/organizations/{username}/articles": { |
1695 | 1695 | "get": { |
1696 | 1696 | "summary": "Organization's Articles", |
1697 | 1697 | "tags": ["organizations", "articles"], |
|
1787 | 1787 | } |
1788 | 1788 | } |
1789 | 1789 | }, |
1790 | | - "/api/pages": { |
| 1790 | + "/pages": { |
1791 | 1791 | "get": { |
1792 | 1792 | "summary": "show details for all pages", |
1793 | 1793 | "security": [], |
|
1939 | 1939 | } |
1940 | 1940 | } |
1941 | 1941 | }, |
1942 | | - "/api/pages/{id}": { |
| 1942 | + "/pages/{id}": { |
1943 | 1943 | "get": { |
1944 | 1944 | "summary": "show details for a page", |
1945 | 1945 | "security": [], |
|
2153 | 2153 | } |
2154 | 2154 | } |
2155 | 2155 | }, |
2156 | | - "/api/podcast_episodes": { |
| 2156 | + "/podcast_episodes": { |
2157 | 2157 | "get": { |
2158 | 2158 | "summary": "Podcast Episodes", |
2159 | 2159 | "security": [], |
|
2221 | 2221 | } |
2222 | 2222 | } |
2223 | 2223 | }, |
2224 | | - "/api/profile_images/{username}": { |
| 2224 | + "/profile_images/{username}": { |
2225 | 2225 | "get": { |
2226 | 2226 | "summary": "A Users or organizations profile image", |
2227 | 2227 | "tags": ["profile images"], |
|
2273 | 2273 | } |
2274 | 2274 | } |
2275 | 2275 | }, |
2276 | | - "/api/reactions/toggle": { |
| 2276 | + "/reactions/toggle": { |
2277 | 2277 | "post": { |
2278 | 2278 | "summary": "toggle reaction", |
2279 | 2279 | "tags": ["reactions"], |
|
2342 | 2342 | } |
2343 | 2343 | } |
2344 | 2344 | }, |
2345 | | - "/api/reactions": { |
| 2345 | + "/reactions": { |
2346 | 2346 | "post": { |
2347 | 2347 | "summary": "create reaction", |
2348 | 2348 | "tags": ["reactions"], |
|
2411 | 2411 | } |
2412 | 2412 | } |
2413 | 2413 | }, |
2414 | | - "/api/readinglist": { |
| 2414 | + "/readinglist": { |
2415 | 2415 | "get": { |
2416 | 2416 | "summary": "Readinglist", |
2417 | 2417 | "tags": ["readinglist"], |
|
2454 | 2454 | } |
2455 | 2455 | } |
2456 | 2456 | }, |
2457 | | - "/api/tags": { |
| 2457 | + "/tags": { |
2458 | 2458 | "get": { |
2459 | 2459 | "summary": "Tags", |
2460 | 2460 | "tags": ["tags"], |
|
2506 | 2506 | } |
2507 | 2507 | } |
2508 | 2508 | }, |
2509 | | - "/api/users/me": { |
| 2509 | + "/users/me": { |
2510 | 2510 | "get": { |
2511 | 2511 | "summary": "The authenticated user", |
2512 | 2512 | "tags": ["users"], |
|
2553 | 2553 | } |
2554 | 2554 | } |
2555 | 2555 | }, |
2556 | | - "/api/users/{id}": { |
| 2556 | + "/users/{id}": { |
2557 | 2557 | "get": { |
2558 | 2558 | "summary": "A User", |
2559 | 2559 | "tags": ["users"], |
|
2586 | 2586 | } |
2587 | 2587 | } |
2588 | 2588 | }, |
2589 | | - "/api/users/{id}/unpublish": { |
| 2589 | + "/users/{id}/unpublish": { |
2590 | 2590 | "put": { |
2591 | 2591 | "summary": "Unpublish a User's Articles and Comments", |
2592 | 2592 | "tags": ["users"], |
|
2635 | 2635 | } |
2636 | 2636 | } |
2637 | 2637 | }, |
2638 | | - "/api/users/{id}/suspend": { |
| 2638 | + "/users/{id}/suspend": { |
2639 | 2639 | "put": { |
2640 | 2640 | "summary": "Suspend a User", |
2641 | 2641 | "tags": ["users"], |
|
2684 | 2684 | } |
2685 | 2685 | } |
2686 | 2686 | }, |
2687 | | - "/api/admin/users": { |
| 2687 | + "/admin/users": { |
2688 | 2688 | "post": { |
2689 | 2689 | "summary": "Invite a User", |
2690 | 2690 | "tags": ["users"], |
|
2729 | 2729 | } |
2730 | 2730 | } |
2731 | 2731 | }, |
2732 | | - "/api/videos": { |
| 2732 | + "/videos": { |
2733 | 2733 | "get": { |
2734 | 2734 | "summary": "Articles with a video", |
2735 | 2735 | "tags": ["videos", "articles"], |
|
0 commit comments