You need to sign in to do that
Don't have an account?
Soujanya Soodini
APEX REST Call for a community user
For one of our mobile app, we would like a community user call a APEX REST class. Is there a specific REST URL in the context of the community?
For example chatter url for a community user would be
/services/data/v37.0/connect/communities/<communityId>/chatter/feeds/news/me/feed-elements
For internal users would be
/services/data/v37.0/connect/communities/internal/chatter/feeds/news/me/feed-elements
For example chatter url for a community user would be
/services/data/v37.0/connect/communities/<communityId>/chatter/feeds/news/me/feed-elements
For internal users would be
/services/data/v37.0/connect/communities/internal/chatter/feeds/news/me/feed-elements
I'm pretty sure that when it comes to custom REST resource, as long as the Apex Class is available to the Community User's profile AND the Profile has API Access, you should be able to make the API call with the User's access token.
John
/services/data/v37.0/connect/communities/<communityId>/services/apexrest/<service_resource_url>