Parameterized API key loading
Opened this issue · 0 comments
sigpwned commented
Users should be able to use other approaches to loading API keys. The following approaches seem useful, although certainly there are others:
GetApiKeys()
- The current approach using theGetApiKeys
endpointGetApiKeys(customerId)
- UseGetApiKeys
customerId
parameter to filter API keys. The API key'scustomerId
field must match itsvalue
field.GetApiKeys(name)
- UseGetApiKeys
nameQuery
parameter to filter API keys. The API key'sname
field must match itsvalue
field.
These values should be given in a String
parameter. If the API key cannot be found with the given method, then unauthorized.