import stampit from 'stampit';
import {Meta, Model} from './base';

const ApiKeyMeta = Meta({
  name: 'apiKey',
  pluralName: 'apiKeys',
  endpoints: {
    'detail': {
      'methods': ['delete', 'get'],
      'path': '/v1/instances/{instanceName}/api_keys/{id}/'
    },
    'list': {
      'methods': ['post', 'get'],
      'path': '/v1/instances/{instanceName}/api_keys/'
    }
  }
});

const ApiKey = stampit()
  .compose(Model)
  .setMeta(ApiKeyMeta);

export default ApiKey;

@@ -188,16 +188,32 @@
 delete',
+ 'patch', 'put',
  'get'%5D,

Add methods to api key's detail endpoint