Skip to content

can't list applications with /v1/projects/${id}/applications #11

Description

@jshimko

I have a project, namespace, cluster, etc. and a single application running. I can query for the single application and successfully get it, but I can't list applications in that same namespace.

# GET the single app

curl http://localhost:8080/v1/projects/77907b06/applications/bb7dd432

{
  "channel": "stable",
  "config": "",
  "created_at": "2017-09-18T13:35:53.981897503Z",
  "deployment_name": "jeremy-mongodb",
  "id": "bb7dd432",
  "json_values": "",
  "name": "mongodb-replicaset",
  "namespace_id": "02678191",
  "registry": "quay.io/samsung_cnct",
  "server": "quay.io",
  "status": {
    "deployed_at": "2017-09-18T13:35:57.832285003Z",
    "state": "DEPLOYED"
  },
  "type": "application",
  "updated_at": "2017-09-18T13:35:57.832285386Z",
  "username": "",
  "version": "latest"
}
# GET all apps in that same namespace

curl http://localhost:8080/v1/projects/77907b06/applications \
     -H "Content-Type: application/json" \
     -d '{ "namespaceid": "02678191" }'


{
  "id": "9PjU+W/E",
  "code": "invalid_request",
  "status": 400,
  "detail": "missing required payload"
}

Yes, I realize my body has namespaceid instead of namespace_id, but that’s what the spec says. Regardless, I tried both ways and got the same result.

swagger_editor

Just to show you that the namespace definitely exists...

curl http://localhost:8080/v1/projects/77907b06/namespaces/02678191

{
  "applications": [
    {
      "oid": "bb7dd432",
      "url": "/v1/projects/77907b06/applications/bb7dd432"
    }
  ],
  "created_at": "2017-09-11T21:49:32.759664083Z",
  "id": "02678191",
  "name": "jeremy",
  "resources": {
    "oid": "e322aa1c",
    "url": "/v1/projects/77907b06/cluster/e322aa1c"
  },
  "type": "namespace"
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions