Closed (duplicate)
Project:
Organic Groups Services
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Feb 2015 at 04:26 UTC
Updated:
8 Mar 2016 at 05:29 UTC
Jump to comment: Most recent
Comments
Comment #1
Sylense commentedI've found that this module is pretty poorly documented and doesn't appear to work well with the latest version of OG (7.x-2.7). There are functions it calls that no longer exist in OG.
In order to join a user to an organic group testing with Postman the following endpoint works for me:
http://MYSITEURL/MYENDPOINT/og/joinThen the data I post is as follows (JSON format)
This will get you passed the controller not found error but you will likely get additional errors because the functions it calls to subscribe a user to a group no longer exist. The calls to og_get_group_membership() and og_membership_create() are incorrect. I have changed some code in order to get it to work. Once I can fully test it I will try and post a patch.
I'm almost to the point where I'm considering just rewriting my own custom resources for OG because there are too many complications with this module.
Comment #2
tyler.frankenstein commentedI've fixed this problem in this issue #2672148: Improve module quality, and changed it to use the URL path (for better access control) instead of POST data (even though you still make an empty POST to use it):
I've applied for co-maintainership, so I hope to make a new dev release with this fix soon.