Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App registration don't add an operation. #354

Closed
yazver opened this issue Dec 14, 2020 · 0 comments
Closed

App registration don't add an operation. #354

yazver opened this issue Dec 14, 2020 · 0 comments

Comments

@yazver
Copy link

yazver commented Dec 14, 2020

After registering an application in AiDBOX with the following manifest, the operation does not appear on the <aidbox>/MobileDoctor/healthcheck.

Registration request:

PUT /App

{
    "apiVersion":1,
    "endpoint":{
        "type":"http-rpc",
        "url":"http://localhost:9002/"
    },
    "id":"mobile-doctor",
    "operations":{
        "app-healthcheck":{
            "method":"GET",
            "path":[
                "MobileDoctor",
                "healthcheck"
            ]
        }
    },
    "type":"app"
}

Request GET /App/mobile-doctor returns:

{
  "type": "app",
  "endpoint": {
    "url": "http://localhost:9002/",
    "type": "http-rpc"
  },
  "apiVersion": 1,
  "operations": {
    "app-healthcheck": {
      "path": [
        "MobileDoctor",
        "healthcheck"
      ],
      "method": "GET"
    }
  },
  "id": "mobile-doctor",
  "resourceType": "App",
  "meta": {
    "lastUpdated": "2020-12-14T15:30:25.848862Z",
    "createdAt": "2020-12-14T15:30:25.848862Z",
    "versionId": "2"
  }
}

Response to the next request GET /MobileDoctor/healthcheck is:

{
  "resourceType": "OperationOutcome",
  "text": {
    "div": "GET /MobileDoctor/healthcheck not found"
  },
  "issue": [
    {
      "severity": "error",
      "code": "not-found",
      "details": {
        "text": "GET /MobileDoctor/healthcheck not found"
      }
    }
  ]
}

Operations searching request GET /Operation?_ilike=mobile returns:

{
  "query-time": 47,
  "meta": {
    "versionId": "2"
  },
  "type": "searchset",
  "resourceType": "Bundle",
  "total": 0,
  "link": [
    {
      "relation": "first",
      "url": "/Operation?_ilike=mobile&page=1"
    },
    {
      "relation": "self",
      "url": "/Operation?_ilike=mobile&page=1"
    }
  ],
  "query-timeout": 60000,
  "entry": [],
  "query-sql": [
    "SELECT \"operation\".* FROM \"operation\" WHERE (\"operation\".id || ' ' || \"operation\".resource::text) ilike ? LIMIT ? OFFSET ? ",
    "%mobile%",
    100,
    0
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants