Skip to content

Commit da83ff1

Browse files
committed
generate specifications,endpoint-names,routes,types-schema
1 parent ac2185d commit da83ff1

File tree

6 files changed

+825
-705
lines changed

6 files changed

+825
-705
lines changed

specification/definitions.json

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@
430430
"restrict_merges",
431431
"enforce_merge_checks",
432432
"require_approvals_to_merge",
433+
"allow_auto_merge_when_builds_pass",
433434
"delete",
434435
"require_all_dependencies_merged",
435436
"push",
@@ -530,7 +531,7 @@
530531
"type": "string"
531532
},
532533
"to": {
533-
"description": "The comment's anchor line in the new version of the file.",
534+
"description": "The comment's anchor line in the new version of the file. If the 'from' line is also provided, this value will be removed.",
534535
"minimum": 1,
535536
"type": "integer"
536537
}
@@ -798,8 +799,8 @@
798799
"type": "object"
799800
}
800801
],
801-
"x-bb-default-fields": ["uuid"],
802-
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commit/{commit.hash}/reports/{uuid}"
802+
"x-bb-default-fields": ["uuid", "commitHash"],
803+
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commits/{commitHash}/reports/{uuid}"
803804
},
804805
"deploy_key": {
805806
"allOf": [
@@ -1246,6 +1247,23 @@
12461247
"required": ["type"],
12471248
"type": "object"
12481249
},
1250+
"export_options": {
1251+
"additionalProperties": true,
1252+
"description": "Options for issue export.",
1253+
"properties": {
1254+
"project_key": {
1255+
"type": "string"
1256+
},
1257+
"project_name": {
1258+
"type": "string"
1259+
},
1260+
"type": {
1261+
"type": "string"
1262+
}
1263+
},
1264+
"required": ["type"],
1265+
"type": "object"
1266+
},
12491267
"group": {
12501268
"allOf": [
12511269
{
@@ -5256,7 +5274,7 @@
52565274
"type": "array"
52575275
},
52585276
"details": {
5259-
"description": "A string to describe the purpose of the report. This string may contain escaped newlines and if it does it will display the content accordingly..",
5277+
"description": "A string to describe the purpose of the report.",
52605278
"required": true,
52615279
"type": "string"
52625280
},
@@ -5311,8 +5329,8 @@
53115329
"type": "object"
53125330
}
53135331
],
5314-
"x-bb-default-fields": ["uuid"],
5315-
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commit/{commit.hash}/reports/{uuid}"
5332+
"x-bb-default-fields": ["uuid", "commitHash"],
5333+
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commits/{commitHash}/reports/{uuid}"
53165334
},
53175335
"report_annotation": {
53185336
"allOf": [
@@ -5385,7 +5403,7 @@
53855403
}
53865404
],
53875405
"x-bb-default-fields": ["uuid"],
5388-
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commit/{commit.hash}/reports/{reportUuid}/annotations/{uuid}"
5406+
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commits/{commit.hash}/reports/{reportUuid}/annotations/{uuid}"
53895407
},
53905408
"report_data": {
53915409
"description": "A key-value element that will be displayed along with the report.",
@@ -6000,8 +6018,8 @@
60006018
"type": "object"
60016019
}
60026020
],
6003-
"x-bb-default-fields": ["uuid"],
6004-
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commit/{commit.hash}/reports/{uuid}"
6021+
"x-bb-default-fields": ["uuid", "commitHash"],
6022+
"x-bb-url": "/rest/2.0/accounts/{target_user.uuid}/repositories/{repository.uuid}/commits/{commitHash}/reports/{uuid}"
60056023
},
60066024
"subject_types": {
60076025
"additionalProperties": false,
@@ -6438,14 +6456,6 @@
64386456
"additionalProperties": true,
64396457
"description": "A Bitbucket workspace membership.\n Links a user to a workspace.",
64406458
"properties": {
6441-
"added_on": {
6442-
"format": "date-time",
6443-
"type": "string"
6444-
},
6445-
"last_accessed": {
6446-
"format": "date-time",
6447-
"type": "string"
6448-
},
64496459
"links": {
64506460
"additionalProperties": false,
64516461
"properties": {
@@ -6465,11 +6475,6 @@
64656475
},
64666476
"type": "object"
64676477
},
6468-
"permission": {
6469-
"description": "Effective permission of user within workspace. Owners can administer\nthe workspace. Collaborators can create repositories. Members can edit\nexisting content.",
6470-
"enum": ["owner", "collaborator", "member"],
6471-
"type": "string"
6472-
},
64736478
"user": {
64746479
"$ref": "#/definitions/account"
64756480
},

specification/extras/endpoint-names.json

Lines changed: 57 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,12 @@
585585
"repositories": "createIssueImportJob"
586586
}
587587
},
588+
"/repositories/{workspace}/{repo_slug}/merge-base/{revspec}": {
589+
"get": {
590+
"commits": "",
591+
"repositories": ""
592+
}
593+
},
588594
"/repositories/{workspace}/{repo_slug}/milestones": {
589595
"get": {
590596
"issue_tracker": "listMilestones",
@@ -727,11 +733,6 @@
727733
"repositories": "getPipeline"
728734
}
729735
},
730-
"/repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/remote-triggers/{trigger_key}": {
731-
"put": {
732-
"repositories": ""
733-
}
734-
},
735736
"/repositories/{workspace}/{repo_slug}/pipelines/{pipeline_uuid}/steps/": {
736737
"get": {
737738
"pipelines": "listSteps",
@@ -1261,19 +1262,53 @@
12611262
"workspaces": ""
12621263
}
12631264
},
1264-
"/users/{username}": {
1265+
"/users/{selected_user}/pipelines_config/variables/": {
12651266
"get": {
1266-
"users": "get"
1267+
"pipelines": "listVariablesForUser",
1268+
"users": "listPipelineVariables"
1269+
},
1270+
"post": {
1271+
"pipelines": "createVariableForUser",
1272+
"users": "createPipelineVariable"
12671273
}
12681274
},
1269-
"/users/{username}/followers": {
1275+
"/users/{selected_user}/pipelines_config/variables/{variable_uuid}": {
1276+
"delete": {
1277+
"pipelines": "deleteVariableForUser",
1278+
"users": "deletePipelineVariable"
1279+
},
12701280
"get": {
1271-
"users": "listFollowers"
1281+
"pipelines": "getVariableForUser",
1282+
"users": "getPipelineVariable"
1283+
},
1284+
"put": {
1285+
"pipelines": "updateVariableForUser",
1286+
"users": "updatePipelineVariable"
12721287
}
12731288
},
1274-
"/users/{username}/following": {
1289+
"/users/{selected_user}/properties/{app_key}/{property_name}": {
1290+
"delete": {
1291+
"properties": "deleteUserHostedPropertyValue",
1292+
"users": "deleteUserHostedPropertyValue"
1293+
},
12751294
"get": {
1276-
"users": "listFollowing"
1295+
"properties": "retrieveUserHostedPropertyValue",
1296+
"users": "retrieveUserHostedPropertyValue"
1297+
},
1298+
"put": {
1299+
"properties": "updateUserHostedPropertyValue",
1300+
"users": "updateUserHostedPropertyValue"
1301+
}
1302+
},
1303+
"/users/{selected_user}/search/code": {
1304+
"get": {
1305+
"search": "codeOfUser",
1306+
"users": "searchCode"
1307+
}
1308+
},
1309+
"/users/{username}": {
1310+
"get": {
1311+
"users": "get"
12771312
}
12781313
},
12791314
"/users/{username}/hooks": {
@@ -1306,56 +1341,12 @@
13061341
"users": "getTeamMembers"
13071342
}
13081343
},
1309-
"/users/{username}/pipelines_config/variables/": {
1310-
"get": {
1311-
"pipelines": "listVariablesForUser",
1312-
"users": "listPipelineVariables"
1313-
},
1314-
"post": {
1315-
"pipelines": "createVariableForUser",
1316-
"users": "createPipelineVariable"
1317-
}
1318-
},
1319-
"/users/{username}/pipelines_config/variables/{variable_uuid}": {
1320-
"delete": {
1321-
"pipelines": "deleteVariableForUser",
1322-
"users": "deletePipelineVariable"
1323-
},
1324-
"get": {
1325-
"pipelines": "getVariableForUser",
1326-
"users": "getPipelineVariable"
1327-
},
1328-
"put": {
1329-
"pipelines": "updateVariableForUser",
1330-
"users": "updatePipelineVariable"
1331-
}
1332-
},
1333-
"/users/{username}/properties/{app_key}/{property_name}": {
1334-
"delete": {
1335-
"properties": "deleteUserHostedPropertyValue",
1336-
"users": "deleteUserHostedPropertyValue"
1337-
},
1338-
"get": {
1339-
"properties": "retrieveUserHostedPropertyValue",
1340-
"users": "retrieveUserHostedPropertyValue"
1341-
},
1342-
"put": {
1343-
"properties": "updateUserHostedPropertyValue",
1344-
"users": "updateUserHostedPropertyValue"
1345-
}
1346-
},
13471344
"/users/{username}/repositories": {
13481345
"get": {
13491346
"teams": "listRepositoriesForUser",
13501347
"users": "listRepositories"
13511348
}
13521349
},
1353-
"/users/{username}/search/code": {
1354-
"get": {
1355-
"search": "codeOfUser",
1356-
"users": "searchCode"
1357-
}
1358-
},
13591350
"/users/{username}/ssh-keys": {
13601351
"get": {
13611352
"ssh": "listKeys",
@@ -1424,6 +1415,11 @@
14241415
"workspaces": ""
14251416
}
14261417
},
1418+
"/workspaces/{workspace}/permissions": {
1419+
"get": {
1420+
"workspaces": ""
1421+
}
1422+
},
14271423
"/workspaces/{workspace}/projects": {
14281424
"get": {
14291425
"workspaces": ""
@@ -1446,5 +1442,11 @@
14461442
"projects": "",
14471443
"workspaces": ""
14481444
}
1445+
},
1446+
"/workspaces/{workspace}/search/code": {
1447+
"get": {
1448+
"search": "searchAccount",
1449+
"workspaces": "searchAccount"
1450+
}
14491451
}
14501452
}

specification/others.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,5 @@
7676
}
7777
]
7878
},
79-
"x-revision": "e0aa900cf99a"
79+
"x-revision": "35080379f78c"
8080
}

0 commit comments

Comments
 (0)