Rest API's


#1

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/Hh3SUKupjPk Import Date: 2016-01-19 21:13:21 +0000.
Sender:Jayadatta Vallabhaneni.
Date:Tuesday, 19 May 2015 19:10:33 UTC+1.

Hi Martin,

Just checking, if there is any Rest API to get the list of users subscribed to an API or to get the user profile from the key id.

Thanks,
Jay


#2

Imported Google Group message.
Sender:Martin Buhr.
Date:Tuesday, 19 May 2015 20:26:18 UTC+1.

Hi Jay,

There is the /api/users API endpoint that gets API keys in the system, but this will only work with an unhashed installation. Though it will not filter by API ID. That’s quite tricky since API tokens are ephemeral so keeping an up to date list is difficult

By users do you mean portal developers? If so, at the moment, no - just a user list.

However, you can always get it from the DB - all developer records have an api_id -> hashed(api-key) map field in Mongo, so you could pull it straight from the source :-/

It’s a good point thoguh, might be something worth adding as an API to the roadmap:

  • Get Developer profile from API token
  • Get Developer profiles for subscribed APIs

Thanks,
Martin

  • show quoted text -

#3

Imported Google Group message.
Sender:Jayadatta Vallabhaneni.
Date:Tuesday, 19 May 2015 20:26:18 UTC+1.

Hi Jay,

There is the /api/users API endpoint that gets API keys in the system, but this will only work with an unhashed installation. Though it will not filter by API ID. That’s quite tricky since API tokens are ephemeral so keeping an up to date list is difficult

By users do you mean portal developers? If so, at the moment, no - just a user list.

However, you can always get it from the DB - all developer records have an api_id -> hashed(api-key) map field in Mongo, so you could pull it straight from the source :-/

It’s a good point thoguh, might be something worth adding as an API to the roadmap:

  • Get Developer profile from API token
  • Get Developer profiles for subscribed APIs

Thanks,
Martin

  • show quoted text -

#4

Imported Google Group message.
Sender:Martin Buhr.
Date:Wednesday, 20 May 2015 19:18:39 UTC+1.

Thanks Martin. That would help.

~Jay

  • show quoted text -