我目前正在尝试在 Salesforce 中创建一个 RESTful API,但我在 iOS 部分遇到了一些问题。这是我一直在尝试使用的快速代码,但是我收到 NOT_FOUND 404 错误消息,“请求的资源不存在”。
let getRequest: SFRestRequest = restAPI.performRequestWithMethod(SFRestMethodGET, path: "/services/apexrest/(service name here)/", queryParams: nil, failBlock: {
error in
println(error)
}, completeBlock: {
response in
println(response)
})
我可以让其他 SOQL 查询在我的 iOS 应用程序中工作,并且用户可以正常登录,我想我在调用 Apex 网络服务方面可能有点偏离。
非常感谢任何建议/意见!谢谢!