summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-06-15 15:51:23 +0200
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-06-15 08:51:23 -0500
commit2bcd9471c9b7efcf8f832f2855e2bc2221c75e03 (patch)
treef61429a95ef0b6a20608667090c3269d4850a60e /routers/api/v1/api.go
parent01322af2e8e213209cddff5356b317ce4875fca3 (diff)
downloadgitea-2bcd9471c9b7efcf8f832f2855e2bc2221c75e03.tar.gz
gitea-2bcd9471c9b7efcf8f832f2855e2bc2221c75e03.zip
Separate generate swagger + fix sed os specific (#1791)
* Separate generate-swagger * Remove go generate rules * Add missing definition replacement + remove use of -i sed flag for compatibility with mac os default sed version. This is a little hacky a better solution could be use. * Use custom SED_INPLACE depending of platform detection * Use SED_INPLACE for swagger-ui also
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index aa7d8a5626..0e356b1f90 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -2,10 +2,6 @@
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
-//go:generate swagger generate spec -o ../../../public/swagger.v1.json
-//go:generate sed -i "s;\".ref\": \"#/definitions/GPGKey\";\"type\": \"object\";g" ../../../public/swagger.v1.json
-//go:generate sed -i "s;^ \".ref\": \"#/definitions/Repository\"; \"type\": \"object\";g" ../../../public/swagger.v1.json
-
// Package v1 Gitea API.
//
// This provide API interface to communicate with this Gitea instance.