Add repo fork swagger (#1941)

This commit is contained in:
Jonas Östanbäck 2017-06-12 02:59:51 +02:00 committed by Lunny Xiao
parent 91f27bf9bd
commit ad70af1248
2 changed files with 56 additions and 0 deletions

View file

@ -228,6 +228,42 @@
}
}
},
"/repos/{owner}/{repo}/forks": {
"get": {
"produces": [
"application/json"
],
"operationId": "listForks",
"responses": {
"200": {
"$ref": "#/responses/RepositoryList"
},
"500": {
"$ref": "#/responses/error"
}
}
},
"post": {
"produces": [
"application/json"
],
"operationId": "createFork",
"responses": {
"202": {
"$ref": "#/responses/Repository"
},
"403": {
"$ref": "#/responses/forbidden"
},
"422": {
"$ref": "#/responses/validationError"
},
"500": {
"$ref": "#/responses/error"
}
}
}
},
"/repos/{username}/{reponame}/mirror-sync": {
"post": {
"produces": [