function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Soujanya SoodiniSoujanya 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
John TJohn T
Soujanya,

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
Soujanya SoodiniSoujanya Soodini
Thanks John. However, what would the REST APEX URL be? I tried the community relative URL below, but doesnt seem to work.

/services/data/v37.0/connect/communities/<communityId>/services/apexrest/<service_resource_url>