UNPKG

@itentialopensource/adapter-bitbucket

Version:

This adapter integrates with system described as: bitbucket.

1,710 lines (1,709 loc) 920 kB
{ "openapi": "3.1.0", "info": { "title": "", "version": "1.0.0" }, "paths": { "/addon": { "delete": { "tags": [ "Addon" ], "operationId": "deleteAddon", "description": "The parameters and request body are for method: deleteAddon. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "put": { "tags": [ "Addon" ], "operationId": "putAddon", "description": "The parameters and request body are for method: putAddon. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/addon/linkers": { "get": { "tags": [ "Addon" ], "operationId": "getAddonLinkers", "description": "The parameters and request body are for method: getAddonLinkers. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/addon/linkers/{linkerKey}": { "get": { "tags": [ "Addon" ], "operationId": "getAddonLinkersLinkerKey", "description": "The parameters and request body are for method: getAddonLinkersLinkerKey. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "linkerKey", "in": "path", "required": true, "schema": { "title": "linkerKey", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/addon/linkers/{linkerKey}/values": { "delete": { "tags": [ "Addon" ], "operationId": "deleteAddonLinkersLinkerKeyValues", "description": "The parameters and request body are for method: deleteAddonLinkersLinkerKeyValues. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "linkerKey", "in": "path", "required": true, "schema": { "title": "linkerKey", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "get": { "tags": [ "Addon" ], "operationId": "getAddonLinkersLinkerKeyValues", "description": "The parameters and request body are for method: getAddonLinkersLinkerKeyValues. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "linkerKey", "in": "path", "required": true, "schema": { "title": "linkerKey", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "post": { "tags": [ "Addon" ], "operationId": "postAddonLinkersLinkerKeyValues", "description": "The parameters and request body are for method: postAddonLinkersLinkerKeyValues. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "linkerKey", "in": "path", "required": true, "schema": { "title": "linkerKey", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "put": { "tags": [ "Addon" ], "operationId": "putAddonLinkersLinkerKeyValues", "description": "The parameters and request body are for method: putAddonLinkersLinkerKeyValues. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "linkerKey", "in": "path", "required": true, "schema": { "title": "linkerKey", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/addon/linkers/{linkerKey}/values/": { "delete": { "tags": [ "Addon" ], "operationId": "deleteAddonLinkersLinkerKeyValues2", "description": "The parameters and request body are for method: deleteAddonLinkersLinkerKeyValues2. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "linkerKey", "in": "path", "required": true, "schema": { "title": "linkerKey", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "get": { "tags": [ "Addon" ], "operationId": "getAddonLinkersLinkerKeyValues2", "description": "The parameters and request body are for method: getAddonLinkersLinkerKeyValues2. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "linkerKey", "in": "path", "required": true, "schema": { "title": "linkerKey", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/hook_events": { "get": { "tags": [ "Webhooks" ], "operationId": "getHookEvents", "description": "The parameters and request body are for method: getHookEvents. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "type": "object", "properties": { "repository": { "type": "object", "properties": { "events": { "type": "object", "properties": { "href": { "type": "string" } } } } }, "team": { "type": "object", "properties": { "events": { "type": "object", "properties": { "href": { "type": "string" } } } } }, "user": { "type": "object", "properties": { "events": { "type": "object", "properties": { "href": { "type": "string" } } } } } } }, "example": { "repository": { "events": { "href": "string" } }, "team": { "events": { "href": "string" } }, "user": { "events": { "href": "string" } } } } } } }, "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/hook_events/{subjectType}": { "get": { "tags": [ "Webhooks" ], "operationId": "getHookEventsSubjectType", "description": "The parameters and request body are for method: getHookEventsSubjectType. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "type": "object", "properties": { "next": { "type": "string" }, "page": { "type": "number" }, "pagelen": { "type": "number" }, "previous": { "type": "string" }, "size": { "type": "number" }, "values": { "type": "array", "items": { "type": "object", "properties": { "category": { "type": "string" }, "description": { "type": "string" }, "event": { "type": "string" }, "label": { "type": "string" } } } } } }, "example": { "next": "string", "page": 9, "pagelen": 3, "previous": "string", "size": 2, "values": [ { "category": "string", "description": "string", "event": "repo:deleted", "label": "string" }, { "category": "string", "description": "string", "event": "pullrequest:rejected", "label": "string" }, { "category": "string", "description": "string", "event": "repo:push", "label": "string" }, { "category": "string", "description": "string", "event": "repo:deleted", "label": "string" }, { "category": "string", "description": "string", "event": "repo:commit_status_updated", "label": "string" }, { "category": "string", "description": "string", "event": "issue:comment_created", "label": "string" }, { "category": "string", "description": "string", "event": "repo:commit_comment_created", "label": "string" } ] } } } } }, "parameters": [ { "name": "subjectType", "in": "path", "required": true, "schema": { "title": "subjectType", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/repositories/{username}/{repoSlug}/hooks": { "get": { "tags": [ "Repositories" ], "operationId": "getRepositoriesUsernameRepoSlugHooks", "description": "The parameters and request body are for method: getRepositoriesUsernameRepoSlugHooks. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "type": "object", "properties": { "next": { "type": "string" }, "page": { "type": "number" }, "pagelen": { "type": "number" }, "previous": { "type": "string" }, "size": { "type": "number" }, "values": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "active": { "type": "boolean" }, "created_at": { "type": "string" }, "description": { "type": "string" }, "events": { "type": "array", "items": { "type": "string" } }, "subject": { "type": "object", "properties": { "type": { "type": "string" } } }, "subject_type": { "type": "string" }, "url": { "type": "string" }, "uuid": { "type": "string" } } } } } }, "example": { "next": "string", "page": 6, "pagelen": 10, "previous": "string", "size": 4, "values": [ { "type": "string", "active": true, "created_at": "string", "description": "string", "events": [ "pullrequest:updated", "issue:created" ], "subject": { "type": "string" }, "subject_type": "team", "url": "string", "uuid": "string" }, { "type": "string", "active": true, "created_at": "string", "description": "string", "events": [ "repo:updated" ], "subject": { "type": "string" }, "subject_type": "repository", "url": "string", "uuid": "string" }, { "type": "string", "active": false, "created_at": "string", "description": "string", "events": [ "pullrequest:comment_created", "repo:push", "issue:updated" ], "subject": { "type": "string" }, "subject_type": "team", "url": "string", "uuid": "string" }, { "type": "string", "active": true, "created_at": "string", "description": "string", "events": [ "issue:comment_created", "pullrequest:approved", "pullrequest:created", "repo:created", "issue:comment_created", "pullrequest:rejected", "repo:deleted", "repo:deleted" ], "subject": { "type": "string" }, "subject_type": "team", "url": "string", "uuid": "string" }, { "type": "string", "active": true, "created_at": "string", "description": "string", "events": [ "pullrequest:comment_created", "pullrequest:comment_deleted", "issue:updated", "repo:commit_comment_created", "project:updated", "issue:updated", "pullrequest:rejected", "repo:deleted", "repo:commit_comment_created", "repo:imported" ], "subject": { "type": "string" }, "subject_type": "team", "url": "string", "uuid": "string" }, { "type": "string", "active": false, "created_at": "string", "description": "string", "events": [ "repo:commit_status_updated", "repo:push", "repo:commit_status_updated", "issue:updated", "pullrequest:fulfilled", "issue:comment_created" ], "subject": { "type": "string" }, "subject_type": "repository", "url": "string", "uuid": "string" } ] } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "post": { "tags": [ "Repositories" ], "operationId": "postRepositoriesUsernameRepoSlugHooks", "description": "The parameters and request body are for method: postRepositoriesUsernameRepoSlugHooks. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "type": "object", "properties": { "type": { "type": "string" }, "active": { "type": "boolean" }, "created_at": { "type": "string" }, "description": { "type": "string" }, "events": { "type": "array", "items": { "type": "string" } }, "subject": { "type": "object", "properties": { "type": { "type": "string" } } }, "subject_type": { "type": "string" }, "url": { "type": "string" }, "uuid": { "type": "string" } } }, "example": { "type": "string", "active": true, "created_at": "string", "description": "string", "events": [ "repo:updated", "pullrequest:comment_updated", "issue:comment_created", "repo:commit_status_created" ], "subject": { "type": "string" }, "subject_type": "user", "url": "string", "uuid": "string" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/repositories/{username}/{repoSlug}/hooks/{uid}": { "delete": { "tags": [ "Repositories" ], "operationId": "deleteRepositoriesUsernameRepoSlugHooksUid", "description": "The parameters and request body are for method: deleteRepositoriesUsernameRepoSlugHooksUid. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } }, { "name": "uid", "in": "path", "required": true, "schema": { "title": "uid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "get": { "tags": [ "Repositories" ], "operationId": "getRepositoriesUsernameRepoSlugHooksUid", "description": "The parameters and request body are for method: getRepositoriesUsernameRepoSlugHooksUid. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "type": "object", "properties": { "type": { "type": "string" }, "active": { "type": "boolean" }, "created_at": { "type": "string" }, "description": { "type": "string" }, "events": { "type": "array", "items": { "type": "string" } }, "subject": { "type": "object", "properties": { "type": { "type": "string" } } }, "subject_type": { "type": "string" }, "url": { "type": "string" }, "uuid": { "type": "string" } } }, "example": { "type": "string", "active": false, "created_at": "string", "description": "string", "events": [ "repo:transfer", "pullrequest:unapproved", "pullrequest:comment_created", "repo:commit_comment_created", "repo:fork" ], "subject": { "type": "string" }, "subject_type": "repository", "url": "string", "uuid": "string" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } }, { "name": "uid", "in": "path", "required": true, "schema": { "title": "uid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "put": { "tags": [ "Repositories" ], "operationId": "putRepositoriesUsernameRepoSlugHooksUid", "description": "The parameters and request body are for method: putRepositoriesUsernameRepoSlugHooksUid. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "type": "object", "properties": { "type": { "type": "string" }, "active": { "type": "boolean" }, "created_at": { "type": "string" }, "description": { "type": "string" }, "events": { "type": "array", "items": { "type": "string" } }, "subject": { "type": "object", "properties": { "type": { "type": "string" } } }, "subject_type": { "type": "string" }, "url": { "type": "string" }, "uuid": { "type": "string" } } }, "example": { "type": "string", "active": true, "created_at": "string", "description": "string", "events": [ "pullrequest:comment_created", "pullrequest:unapproved" ], "subject": { "type": "string" }, "subject_type": "team", "url": "string", "uuid": "string" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } }, { "name": "uid", "in": "path", "required": true, "schema": { "title": "uid", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/repositories": { "get": { "tags": [ "Repositories" ], "operationId": "getRepositories", "description": "The parameters and request body are for method: getRepositories. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "after", "in": "query", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/repositories/{username}": { "get": { "tags": [ "Repositories" ], "operationId": "getRepositoriesUsername", "description": "The parameters and request body are for method: getRepositoriesUsername. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "role", "in": "query", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } } }, "/repositories/{username}/{repoSlug}": { "delete": { "tags": [ "Repositories" ], "operationId": "deleteRepositoriesUsernameRepoSlug", "description": "The parameters and request body are for method: deleteRepositoriesUsernameRepoSlug. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "get": { "tags": [ "Repositories" ], "operationId": "getRepositoriesUsernameRepoSlug", "description": "The parameters and request body are for method: getRepositoriesUsernameRepoSlug. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object" }, "example": {} } } } }, "post": { "tags": [ "Repositories" ], "operationId": "postRepositoriesUsernameRepoSlug", "description": "The parameters and request body are for method: postRepositoriesUsernameRepoSlug. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } } ], "requestBody": { "description": "indeterminate body object", "content": { "application/json": { "schema": { "type": "object" } } } } }, "put": { "tags": [ "Repositories" ], "operationId": "putRepositoriesUsernameRepoSlug", "description": "The parameters and request body are for method: putRepositoriesUsernameRepoSlug. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } } ], "requestBody": { "description": "indeterminate body object", "content": { "application/json": { "schema": { "type": "object" } } } } } }, "/repositories/{username}/{repoSlug}/src": { "post": { "tags": [ "Repositories" ], "operationId": "postRepositoriesUsernameRepoSlugSrc", "description": "The parameters and request body are for method: postRepositoriesUsernameRepoSlugSrc. Same endpoint also used in methods:<br> CreateACommitByUploadingAFile (username : string,repoSlug : string,message : string,author : string,parents : string,files : object,branch : object)", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "title": "result", "type": "object" } } } } }, "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "title": "username", "type": "string" } }, { "name": "repoSlug", "in": "path", "required": true, "schema": { "title": "repoSlug", "type": "string" } } ], "requestBody": { "description": "indeterminate body object", "content": { "application/json": { "schema": { "type": "object" } } } } } }, "/repositories/{username}/{repoSlug}/commit/{node}/statuses": { "get": { "tags": [ "Repositories" ], "operationId": "getRepositoriesUsernameRepoSlugCommitNodeStatuses", "description": "The parameters and request body are for method: getRepositoriesUsernameRepoSlugCommitNodeStatuses. Same endpoint also used in methods:", "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "type": "object", "properties": { "next": { "type": "string" }, "page": { "type": "number" }, "pagelen": { "type": "number" }, "previous": { "type": "string" }, "size": { "type": "number" }, "values": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "created_on": { "type": "string" }, "description": { "type": "string" }, "key": { "type": "string" }, "links": { "type": "object", "properties": { "commit": { "type": "object", "properties": { "href": { "type": "string" } } }, "self": { "type": "object", "properties": { "href": { "type": "string" } } } } }, "name": { "type": "string" }, "refname": { "type": "string" }, "state": { "type": "string" }, "updated_on": { "type": "string" }, "url": { "type": "string" }, "uuid": { "type": "string" } } } } } }, "example": { "next": "string", "page": 5, "pagelen": 9, "previous": "string", "size": 4, "values": [ { "type": "string", "created_on": "string", "description": "string", "key": "string", "links": { "commit": { "href": "string" }, "self": { "href": "string" } }, "name": "string", "refname": "string", "state": "FAILED", "updated_on": "string", "url": "string", "uuid": "string" }, { "type": "string", "created_on": "string", "description": "string", "key": "string", "links": { "commit": {