cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP Java project with ODATA service - Metadata 404

umberto_panico
Participant
0 Kudos
331

Hi All,

this is the problem, we have a CAP Java Project with a catalog service (api/attachments) and ui (AppName) that consume it, so

XS-APP.JON

             "source": "^/api/attachments(.*)$",
            "target": "$1",
            "authenticationType": "xsuaa",
            "destination": "backend",
            "csrfProtection": false

MANIFEST.JSON

"dataSources": {
      "mainService": {
        "uri": "/api/attachments/",
        "type": "OData",
        "settings": {
          "odataVersion": "4.0"
        }
      }

MTA.YAML

        name: srv-api
        group: destinations
        properties:
          forwardAuthToken: true
          strictSSL: false
          url: '~{url}'
          name: backend

I think the problem is in xs-app, i did various tests but it doesn't work.

marcelmerkle
Advisor
Advisor
0 Kudos

Hi Umberto,

could you provide more information from the URL? Which app are you calling the approuter or the srv-backend?

Best regards,
Marcel

Accepted Solutions (0)

Answers (0)