Skip to Content
Apr 07, 2016 at 07:08 AM

Issues with HCP Gateway Destination and neo-app.json


hello all

I am developing a ui5 app using hcp web ide. The application will be deployed to the HCP platform. we have created a destination in the HCP which points to the gateway server. I am bit confused how the Gateway Server and oData Model be referenced in the neo-app.json and Menifest.json

So in the neo-app.json, I have referred to the destination

      "path": "/sandboxgateway/sap/opu/odata",
      "target": {
        "type": "destination",
        "name": "GCN_Inbound",
        "entryPath": "/sap/opu/odata"
      "description": "Connectivity to Gateway Sandbox(GCN)"

In the Manifest.json, I have defined a datasource

"dataSources": {
  "ewm": {
  "uri": "/sap/opu/odata/<name>",
  "type": "OData",
  "settings": {
  "annotations": [],
  "odataVersion": "2.0",
  "localUri": ""

and then defined a named model with the above data source

"ewmModel": {
  "dataSource": "ewm"

Does this look correct? so when the component is instantiated, the odata model will be created automatically using the correct destination?

or, do I have to put the destination name as well in the datasource definition?