Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/27/2024 09:11:27 PM (15 months ago)
Author:
espellcaste
Message:

Include the V2 of the BP REST API in BuddyPress core.

We are officially deprecating the V1 of the BP REST API. And bundling the new, default, V2 of the BP REST API inside BuddyPress core. Previously, the V1 was developed as a plugin in a separate repo (https://github.com/buddypress/BP-REST).

  • One of the main differences between the V1 and V2 is how objects are returned. Single items are no longer returned as an array;
  • We have a new BP_Test_REST_Controller_Testcase for testing the new API endpoints;
  • We changed the names of our controllers to follow our autoloader rules;
  • Removed the BP-REST plugin from wp-env and from our release script;
  • And we added notices for the deprecated V1 API (endpoints and files).

Props imath & I. ;)

Fixes #8200
See #9145
Closes https://github.com/buddypress/buddypress/pull/337

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/contributor/code/README.md

    r13769 r14026  
    111111```
    112112
    113 You should see that your `~/Plugins/buddypress` directory now contains 1 or 2 more sub directories: `/node_modules` and `/vendor` if you installed the composer packages.
     113You should see that your `~/Plugins/buddypress` directory now contains 1 or 2 more subdirectories: `/node_modules` and `/vendor` if you installed the composer packages.
    114114
    115115![Check installs](../assets/code-003-install-tools.png)
     
    121121```
    122122
    123 The first time you’ll execute this command it will take some time to run and you’ll see that 2 downloads will start:
    124 
    125 - [BP REST](https://github.com/buddypress/BP-REST): it’s the plugin we use to develop the BP REST API.
     123The first time you’ll execute this command it will take some time to run, and you’ll see that the following download will start:
     124
    126125- [WordPress](https://core.trac.wordpress.org/browser/trunk): it’s the WordPress development version.
    127126
     
    176175### Customizing your BuddyPress local development environment
    177176
    178 To develop BuddyPress we use the development version of [WordPress](https://core.trac.wordpress.org/browser/trunk), the development version of the [BP REST API](https://github.com/buddypress/BP-REST) and we set two debugging constants:
     177To develop BuddyPress we use the development version of [WordPress](https://core.trac.wordpress.org/browser/trunk), and we set two debugging constants:
    179178
    180179```php
     
    190189{
    191190    "core": "WordPress/WordPress#master",
    192     "plugins": [ ".", "buddypress/BP-REST#master", "buddypress/bp-classic#trunk" ],
     191    "plugins": [ ".", "buddypress/bp-classic#trunk" ],
    193192    "config": {
    194193        "WP_DEBUG": true,
     
    206205## Patching BuddyPress
    207206
    208 Let’s work with a real bug example (It might has been fixed when you’ll read this page!) to understand how to suggest a fix to the BuddyPress development team. First, open the `~/Plugins/buddypress` directory into your favorite code editor.
     207Let’s work with a real bug example (It might have been fixed when you’ll read this page!) to understand how to suggest a fix to the BuddyPress development team. First, open the `~/Plugins/buddypress` directory into your favorite code editor.
    209208
    210209![BP in VSCode](../assets/code-004-vscode-bp.png)
Note: See TracChangeset for help on using the changeset viewer.