summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJonas Östanbäck <cez81@users.noreply.github.com>2017-06-12 02:59:51 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-12 08:59:51 +0800
commitad70af124853ab8046a865bfc098dbd426a0d1a7 (patch)
treedb6676c3e083db3d304d7e15abe28aaf99f6ba19 /public
parent91f27bf9bd942ccf8ec78c2d735fc2ac48493d67 (diff)
downloadgitea-ad70af124853ab8046a865bfc098dbd426a0d1a7.tar.gz
gitea-ad70af124853ab8046a865bfc098dbd426a0d1a7.zip
Add repo fork swagger (#1941)
Diffstat (limited to 'public')
-rw-r--r--public/swagger.v1.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index 62c9fd3c48..68f8227933 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -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": [