I keep getting 401 Not Authorized errors when I call my resource with a REST test tool like the Advanced REST client. I'm supplying an access token taken from a curl call to the salesforce login service. The error I get back when using the RestResource is
message: "Session expired or invalid"
errorCode: "INVALID_SESSION_ID"
My annotation for the RestResource is
@RestResource( urlMapping='/CreateObject/v1/*')
And I'm calling my service via the URL https://emea.salesforce.com/services/apexrest/CreateObject/v1/*
Can anyone shed a light as to what I'm doing wrong?