equinixmetal-archive/packngo

User and Project API keys not GETtable by direct URL paths, both DELETEable over user API key path

t0mk opened this issue · 0 comments

t0mk commented

There don't seem to be a href for API keys in EM API:

  "api_keys": [
    {
      "id": "baff8dfa-2053-4644-8592-e2bc63909da8",
      "token": "REMOVED",
      "created_at": "2016-11-17T11:43:39Z",
      "updated_at": "2016-11-17T11:43:39Z",
      "description": "tomk",
      "user": {
        "href": "/metal/v1/users/ae8b343c-8800-44ff-a31f-edd1a2cbf86d"
      },
      "read_only": false
    },

.. i.e. it's not possible to GET api keys over URLs like /user/api-keys/baff8... or /projects/54bd4e../api-keys/c3ab3... Strangely it's possible to DELETE API key over such URL. Both project and user keys are Deleted over /user/api-keys/db4bcdef...

Why to make it possible to delete over the urls but not fetch them. Maybe this could be improved in the API?