jetpack
Last commit date
3rd-party
6 years ago
_inc
6 years ago
bin
6 years ago
css
6 years ago
extensions
6 years ago
images
6 years ago
json-endpoints
6 years ago
languages
6 years ago
modules
6 years ago
sal
6 years ago
src
6 years ago
vendor
6 years ago
views
7 years ago
.svnignore
12 years ago
CODE-OF-CONDUCT.md
9 years ago
changelog.txt
6 years ago
class.frame-nonce-preview.php
6 years ago
class.jetpack-admin.php
6 years ago
class.jetpack-affiliate.php
6 years ago
class.jetpack-autoupdate.php
6 years ago
class.jetpack-bbpress-json-api-compat.php
6 years ago
class.jetpack-cli.php
6 years ago
class.jetpack-client-server.php
6 years ago
class.jetpack-connection-banner.php
6 years ago
class.jetpack-data.php
6 years ago
class.jetpack-debugger.php
7 years ago
class.jetpack-error.php
10 years ago
class.jetpack-gutenberg.php
6 years ago
class.jetpack-heartbeat.php
6 years ago
class.jetpack-idc.php
6 years ago
class.jetpack-ixr-client.php
6 years ago
class.jetpack-modules-list-table.php
6 years ago
class.jetpack-network-sites-list-table.php
6 years ago
class.jetpack-network.php
6 years ago
class.jetpack-plan.php
6 years ago
class.jetpack-post-images.php
6 years ago
class.jetpack-twitter-cards.php
6 years ago
class.jetpack-user-agent.php
6 years ago
class.jetpack-xmlrpc-server.php
6 years ago
class.jetpack.php
6 years ago
class.json-api-endpoints.php
6 years ago
class.json-api.php
6 years ago
class.photon.php
6 years ago
composer.json
6 years ago
functions.compat.php
6 years ago
functions.cookies.php
6 years ago
functions.gallery.php
6 years ago
functions.global.php
6 years ago
functions.opengraph.php
6 years ago
functions.photon.php
6 years ago
jest.config.js
6 years ago
jetpack.php
6 years ago
json-api-config.php
10 years ago
json-endpoints.php
7 years ago
load-jetpack.php
6 years ago
locales.php
7 years ago
readme.txt
6 years ago
require-lib.php
6 years ago
uninstall.php
6 years ago
wpml-config.xml
10 years ago
json-endpoints.php
133 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * Endpoint class definitions are located inside the files that require these endpoint classes. |
| 5 | * file ordering matters |
| 6 | */ |
| 7 | |
| 8 | $json_endpoints_dir = dirname( __FILE__ ) . '/json-endpoints/'; |
| 9 | |
| 10 | //abstract endpoints |
| 11 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-post-endpoint.php' ); |
| 12 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-post-v1-1-endpoint.php' ); // v1.1 |
| 13 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-comment-endpoint.php' ); |
| 14 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-taxonomy-endpoint.php' ); |
| 15 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-render-endpoint.php' ); |
| 16 | |
| 17 | |
| 18 | // ********** |
| 19 | // v1 |
| 20 | // ********** |
| 21 | |
| 22 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-delete-media-endpoint.php' ); |
| 23 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-comment-endpoint.php' ); |
| 24 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-comments-tree-endpoint.php' ); |
| 25 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-media-endpoint.php' ); |
| 26 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-post-endpoint.php' ); |
| 27 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-render-shortcode-endpoint.php' ); |
| 28 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-shortcodes-endpoint.php' ); |
| 29 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-render-embed-reversal-endpoint.php' ); |
| 30 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-render-embed-endpoint.php' ); |
| 31 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-embeds-endpoint.php' ); |
| 32 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-site-endpoint.php' ); |
| 33 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-taxonomies-endpoint.php' ); |
| 34 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-taxonomy-endpoint.php' ); |
| 35 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-term-endpoint.php' ); |
| 36 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-comments-endpoint.php' ); |
| 37 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-media-endpoint.php' ); |
| 38 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-post-types-endpoint.php' ); |
| 39 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-post-type-taxonomies-endpoint.php' ); |
| 40 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-posts-endpoint.php' ); |
| 41 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-roles-endpoint.php' ); |
| 42 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-terms-endpoint.php' ); |
| 43 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-users-endpoint.php' ); |
| 44 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-site-user-endpoint.php' ); |
| 45 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-bulk-update-comments-endpoint.php' ); |
| 46 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-comment-endpoint.php' ); |
| 47 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-media-endpoint.php' ); |
| 48 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-post-endpoint.php' ); |
| 49 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-taxonomy-endpoint.php' ); |
| 50 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-term-endpoint.php' ); |
| 51 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-user-endpoint.php' ); |
| 52 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-upload-media-endpoint.php' ); |
| 53 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-site-settings-endpoint.php' ); |
| 54 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-sharing-buttons-endpoint.php' ); |
| 55 | |
| 56 | // ********** |
| 57 | // v1.1 |
| 58 | // ********** |
| 59 | |
| 60 | // Comments |
| 61 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-comments-tree-v1-1-endpoint.php' ); |
| 62 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-comment-counts-endpoint.php' ); |
| 63 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-comment-history-endpoint.php' ); |
| 64 | |
| 65 | // Media |
| 66 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-delete-media-v1-1-endpoint.php' ); |
| 67 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-media-v1-1-endpoint.php' ); |
| 68 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-media-v1-1-endpoint.php' ); |
| 69 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-media-v1-1-endpoint.php' ); |
| 70 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-upload-media-v1-1-endpoint.php' ); |
| 71 | |
| 72 | // Posts |
| 73 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-post-v1-1-endpoint.php' ); |
| 74 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-posts-v1-1-endpoint.php' ); |
| 75 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-post-v1-1-endpoint.php' ); |
| 76 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-autosave-v1-1-endpoint.php' ); |
| 77 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-autosave-post-v1-1-endpoint.php' ); |
| 78 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-post-counts-v1-1-endpoint.php' ); |
| 79 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-bulk-delete-post-endpoint.php' ); |
| 80 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-bulk-restore-post-endpoint.php' ); |
| 81 | |
| 82 | // Custom Menus |
| 83 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-menus-v1-1-endpoint.php' ); |
| 84 | |
| 85 | // Custom CSS |
| 86 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-customcss.php' ); |
| 87 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-customcss.php' ); |
| 88 | |
| 89 | // Logo Settings |
| 90 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-site-logo-endpoint.php' ); |
| 91 | |
| 92 | // Homepage Settings |
| 93 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-site-homepage-endpoint.php' ); |
| 94 | |
| 95 | // Widgets |
| 96 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-add-widget-endpoint.php' ); |
| 97 | |
| 98 | // ********** |
| 99 | // v1.2 |
| 100 | // ********** |
| 101 | |
| 102 | // Comments |
| 103 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-comments-tree-v1-2-endpoint.php' ); |
| 104 | |
| 105 | // Media |
| 106 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-media-v1-2-endpoint.php' ); |
| 107 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-media-v1-2-endpoint.php' ); |
| 108 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-edit-media-v1-2-endpoint.php' ); |
| 109 | |
| 110 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-update-post-v1-2-endpoint.php' ); |
| 111 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-site-settings-v1-2-endpoint.php' ); |
| 112 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-get-site-v1-2-endpoint.php' ); |
| 113 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-list-posts-v1-2-endpoint.php' ); |
| 114 | |
| 115 | // Jetpack Only Endpoints |
| 116 | $json_jetpack_endpoints_dir = dirname( __FILE__ ) . '/json-endpoints/jetpack/'; |
| 117 | |
| 118 | // This files instantiates the endpoints |
| 119 | require_once( $json_jetpack_endpoints_dir . 'json-api-jetpack-endpoints.php' ); |
| 120 | |
| 121 | // ********** |
| 122 | // v1.3 |
| 123 | // ********** |
| 124 | |
| 125 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-site-settings-v1-3-endpoint.php' ); |
| 126 | |
| 127 | // ********** |
| 128 | // v1.4 |
| 129 | // ********** |
| 130 | |
| 131 | require_once( $json_endpoints_dir . 'class.wpcom-json-api-site-settings-v1-4-endpoint.php' ); |
| 132 | |
| 133 |