Closed bbathel13 closed 4 years ago
The bitbucket api to create deploy keys takes two body fields, key and label, which are not included in the node-bitbucket route. It currently only allows for username and repo_slug which are used in the path.
currently:
"createDeployKey": { "method": "POST", "params": { "repo_slug": { "in": "path", "required": true, "type": "string" }, "username": { "in": "path", "required": true, "type": "string" }, }, "returns": "DeployKey", "url": "/repositories/{username}/{repo_slug}/deploy-keys" },`
I think it should look more like this:
"createDeployKey": { "method": "POST", "params": { "repo_slug": { "in": "path", "required": true, "type": "string" }, "username": { "in": "path", "required": true, "type": "string" }, "label":{ "in":"body", "required":true, "type":"string" }, "key":{ "in":"body", "required":true, "type":"string" } }, "returns": "DeployKey", "url": "/repositories/{username}/{repo_slug}/deploy-keys" },
The bitbucket api to create deploy keys takes two body fields, key and label, which are not included in the node-bitbucket route. It currently only allows for username and repo_slug which are used in the path.
currently:
I think it should look more like this: