bb-api's Issues
Endpoints
Forums:
-
/wp-json.php/forums/
: a paginated list of forums -
/wp-json.php/forums/{id}/
: data for a specific forum, including its topics
Topics:
-
/wp-json.php/topics/
: a paginated list of topics for any forum -
/wp-json.php/topics/{id}/
: data for a specific topic, including its replies
Replies:
-
/wp-json.php/replies/
-
/wp-json.php/replies/{id}
Users:
-
/wp-json.php/users/{id}/topics/
: a paginated list of a user's topics -
/wp-json.php/users/{id}/replies/
: a paginated list of a user's replies -
/wp-json.php/users/{id}/subscriptions/
: a paginated list of a user's topic & reply subscriptions
Forum Data
- Subscription link (in the
links
field), seebbp_forum_subscription_link()
- Last updated/active time, see
bbp_get_forum_last_active_time()
- Topic count, see
bbp_forum_topic_count()
- Reply count, see
bbp_forum_reply_count()
- Post count, see
bbp_forum_post_count()
Base Data to Modify
- Forum ID
bbp_forum_id()
- Forum title
bbp_forum_title()
- Forum content
bbp_get_forum_content()
- Forum content
bbp_get_forum_content()
Users API: Topics, Replies & Subscriptions
Default permalinks used by bbPress:
example.com/forums/users/{username}/topics/
example.com/forums/users/{username}/replies/
example.com/forums/users/{username}/subscriptions/
Can probably create similar Endpoints:
example.com/wp-json.php/users/{id}/topics/
example.com/wp-json.php/users/{id}/replies/
example.com/wp-json.php/users/{id}/subscriptions/
See bbp_get_user_topics_started()
and bbp_get_user_topics_started()
for topic functions.
See bbp_get_user_forum_subscriptions()
and bbp_get_user_topic_subscriptions()
for subscriptions.
Still active?
Getting excited for the wp api. Started poking around and saw the bp api that modemlooper is doing https://github.com/modemlooper/BP-API
and saw yorus for bbpress (thank you!) but saw the last commit was some time ago. Is this still an active repo? If not, what exactly needs to be done to update it? I'll see if I can get you some help.
Topic Data
- Parent forum, see
bbp_get_topic_forum_id()
- Voice count, see
bbp_topic_voice_count()
- Reply count, see
bbp_topic_reply_count()
- Post count, see
bbp_topic_post_count()
- Subscription link (in the
links
field), seebbp_topic_subscription_link()
- Topic tags, see
bbp_get_topic_tag_list()
- Last updated/active time, see
bbp_get_topic_last_active_time()
Base Data to Modify
- ID
bbp_topic_id()
- Title
bbp_topic_title()
- Link
bbp_topic_permalink()
- Content
bbp_get_forum_content()
- Pagination, see
bbp_get_topic_pagination()
Update code for latest WP-API
Hey,
would it be possible to make the plugin work with the latest develop branch of WP-API?
I want to use WP-API, WP-BP and WP-BB alongside.
Would be awesome ๐
Best,
David
Reply Data
- Parent forum (may need own logic)
- Parent topic (may need own logic)
Base Data to Modify
- ID
bbp_reply_id()
- Title (topics don't really have a title)
- Link
bbp_reply_url()
- Content
bbp_reply_content()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.