Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Strongloop API for API

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi,

I'm trying to create a PoC using Stroongloop to build an API for MDSP API, something like this. Can someone tell me what is the backend URL I should use? I tried using https://gateway.eu1.mindsphere.io/api/.. and it didn't work for me. Here is the extract of the datasource.json. What am I doing wrong and what is missing? 

 

{
  "db": {
    "name": "db",
    "connector": "memory"
  },
  "swapi": {
    "name": "swapi",
    "baseURL": "https://gateway.eu1.mindsphere.io/api/assetmanagement/v3/",
    "crud": false,
    "connector": "rest",
    "operations": [
      {
        "functions": {
          "getships": []
        },
        "template": {
          "method": "GET",
          "url": "https://gateway.eu1.mindsphere.io/api/assetmanagement/v3/",
          "headers": {
            "accepts": "application/json",
            "content-type": "application/json"
          },
          "responsePath": "$.results.*"
        }
      }
    ]
  }
}