Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created June 1, 2016 13:08
Show Gist options
  • Save eminetto/9d02d3aa6f88a12906cff0cb4e23d0ba to your computer and use it in GitHub Desktop.
Save eminetto/9d02d3aa6f88a12906cff0cb4e23d0ba to your computer and use it in GitHub Desktop.
/**
* @api {post} /bitbucket/saveRepository Save a new repository
* @apiVersion 1.0.0
* @apiName SaveRepository
* @apiGroup Bitbucket
*
* @apiParam (parameters) {String} projectId Project's ID
* @apiParam (parameters) {String} repository[uuid] Repository's Id
* @apiParam (parameters) {String} repository[owner] Repository's Owner
* @apiParam (parameters) {String} repository[slug] Repository's Slug
*
* @apiError (406) InvalidParameters Invalid parameters
* @apiError (404) ProjectNotFound Project not found
* @apiError (406) RepositoryAlreadyUsed Repository already used
*
* @apiSuccess (201) {String} status Status
* @apiSuccess (201) {String} data Ok
* @apiSuccess (201) {Number} statusCode Status Code
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment