Next.js drop-in replacement for api2.contrib.co (PHP Yii)
| Endpoint | Method | Auth | Params | Description |
|---|---|---|---|---|
| /Forum2/CheckIfEmailExists | GET | none | email, domain | Check if forum email is registered |
| /Forum2/CheckIfUsernameExists | GET | none | username, domain | Check if forum username is taken |
| /Forum2/CheckAccountExists | GET | none | email, domain | Check account and return UID if exists |
| /Forum2/SignUp | POST | none | username, email, password, domain | Register new forum member |
| /Forum2/Login | POST | none | email, password, domain | Login and get UID |
| /Forum2/GetUserDetails | GET | none | uid, domain | Get forum member details by UID |
| /Forum2/GetMember | GET | none | uid, domain | Get forum member info |
| /Forum2/GetMemberInfo | GET | none | member_id | Get member info by ID |
| /Forum2/GetLatestMembers | GET | none | domain, limit? | Latest registered members |
| /Forum2/GetCategories | GET | none | domain, uid? | Get forum categories (user-subscribed or all) |
| /Forum2/GetAllTopics | GET | none | - | List all forum topics |
| /Forum2/GetTopicrow | GET | none | slug | Get single topic by slug |
| /Forum2/GetTopics | GET | none | domain, topic?, limit? | Get topics or posts within a topic |
| /Forum2/GetDiscussions | GET | none | domain, topic_id? | Get discussion topics with subtopic counts |
| /Forum2/SubscribeTopics | POST | none | topics (comma IDs), member_id | Subscribe member to topics |
| /Forum2/GetPosts | GET | none | domain, topic_id?, limit?, page? | Get posts (paginated) with comment counts |
| /Forum2/GetPostrow | GET | none | slug (id-slug-text) | Get single post by ID+slug |
| /Forum2/PostTopic | POST | none | title, description, topic_id, member_id, domain | Create new forum post |
| /Forum2/ViewComments | GET | none | post_id | Get comments for a post |
| /Forum2/PostComment | POST | none | post_id, comment, member_id | Add comment to a post |
| /Forum2/Vote | POST | none | post_id, vote (up|down) | Vote on a post |
| /Forum2/GetViewsCount | GET | none | post_id | Increment and get view count |
| /Forum2/GetTop | GET | none | domain, limit? | Top posts by votes and comments |
| /Forum2/GetTrending | GET | none | domain, limit? | Trending posts (last 7 days, by views) |
| /Forum2/GetRecent | GET | none | domain, limit? | Most recent posts |
| /Forum2/Search | GET | none | domain, keyword, limit? | Search posts by title/description |
| /Forum2/Tag | GET | none | domain, tag, limit? | Find posts by tag |