qcloud-apigateway

Qcloud API Gateway api (private)

Showing:

Popularity

Downloads/wk

0

GitHub Stars

1

Maintenance

Last Commit

3yrs ago

Contributors

3

Package

Dependencies

1

Size (min+gzip)

3.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

qcloud-apigateway

Greenkeeper badge

Qcloud API Gateway api

Undocumented apis spy from qcloud web console

Build Status

Usage

npm i qcloud-apigateway

const { QcloudAPIGateway } = require('qcloud-apigateway')
const ag = new QcloudAPIGateway({SecretId: 'xxx', SecretKey: 'xxx', Region: 'sh'})

ag.describeServicesStatus().then(console.log)

/*
{ totalCount: 1,
  serviceStatusSet:
   [ { serviceDesc: 'API Gateway example.',
       protocol: 'http&https',
       modifiedTime: '2018-02-05 21:48:41',
       serviceId: 'service-0abc0def',
       availableEnvironments: [],
       serviceName: 'demo',
       createdTime: '2018-02-05 21:48:41',
       subDomain: 'service-0abc0def-1257654321.ap-shanghai.apigateway.myqcloud.com' } ] }
*/

API

FIELDTYPEDESCRIPTIONREMARK
#createService
*protocol`httphttpshttp&https`
serviceNamestringService name is NOT unique. If leave blank server will generate a random one.max 50, a-z, A-Z, 0-9, _
serviceDescstring
#describeServicesStatus
limitnumber0 - 100
offsetnumber0 - INFINITY
searchIdstringSearch by service id.Starts with service-
searchNamestringSearch by service name.Starts with service-
@return
totalCountnumber
serviceStatusSet[]
serviceStatusSet[].serviceIdstring
serviceStatusSet[].serviceNamestring
serviceStatusSet[].serviceDescstring
serviceStatusSet[].protocol`httphttpshttp&https`
serviceStatusSet[].subDomainstring
serviceStatusSet[].vailableEnvironments[]

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100