You need to sign in to do that
Don't have an account?

iOS Force.com SDK and custom rest responder class?
Is there any means of accessing a custom rest responder class (created using @RestResource) with the iOS force.com sdk? The documentation only mentions the following potential "request for" methods, none of which seem applicable.
-
– requestForVersions
Returns an
SFRestRequest
which lists summary information about each Salesforce.com version currently available, including the version, label, and a link to each version’s root. -
– requestForResources
Returns an
SFRestRequest
which lists available resources for the client’s API version, including resource name and URI. -
– requestForDescribeGlobal
Returns an
SFRestRequest
which lists the available objects and their metadata for your organization’s data. -
– requestForMetadataWithObjectType:
Returns an
SFRestRequest
which Describes the individual metadata for the specified object. -
– requestForDescribeWithObjectType:
Returns an
SFRestRequest
which completely describes the individual metadata at all levels for the specified object. -
– requestForRetrieveWithObjectType:objectId:fieldList:
Returns an
SFRestRequest
which retrieves field values for a record of the given type. -
– requestForCreateWithObjectType:fields:
Returns an
SFRestRequest
which creates a new record of the given type. -
– requestForUpsertWithObjectType:externalIdField:externalId:fields:
Returns an
SFRestRequest
which creates or updates record of the given type, based on the given external ID. -
– requestForUpdateWithObjectType:objectId:fields:
Returns an
SFRestRequest
which updates field values on a record of the given type. -
– requestForDeleteWithObjectType:objectId:
Returns an
SFRestRequest
which deletes a record of the given type. -
– requestForQuery:
Returns an
SFRestRequest
which executes the specified SOQL query. -
– requestForSearch:
you can also create a SFRestRequest by using the class method
+ (id)requestWithMethod:(SFRestMethod)method path:(NSString *)path queryParams:(NSDictionary *)queryParams;
that gives you some flexibily on how to connect to by using the method parameters, which you will use to to do the action specified by the method, using the path specified by path, passing the parameters inside the queryParams dictionary. something else you can do, if you have a custom action, is to read the documentation of the custom action you wish to perform, and to connect directly to that custom action(using NSURLConnection and NSURLRequest), passing the neccesary header fields the action requires (such as the access token, rest method, content type).