API generation

This commit is contained in:
delvedor
2019-03-13 16:09:29 +01:00
parent 5030efd2d0
commit 51ef62b4f1
255 changed files with 3374 additions and 1674 deletions

View File

@ -70,6 +70,15 @@ function buildCatRepositories (opts) {
options = {}
}
// promises support
if (callback == null) {
return new Promise((resolve, reject) => {
catRepositories(params, options, (err, body) => {
err ? reject(err) : resolve(body)
})
})
}
// check required parameters
if (params.body != null) {
return callback(