This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
package swagger
|
||||
|
||||
import api "code.gitea.io/gitea/modules/structs"
|
||||
import api "gitea.dev/modules/structs"
|
||||
|
||||
// SecretList
|
||||
// swagger:response SecretList
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// ActivityFeedsList
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// OAuth2Application
|
||||
@@ -20,3 +20,10 @@ type swaggerResponseAccessToken struct {
|
||||
// in:body
|
||||
Body api.AccessToken `json:"body"`
|
||||
}
|
||||
|
||||
// CurrentAccessToken represents the currently authenticated access token.
|
||||
// swagger:response CurrentAccessToken
|
||||
type swaggerResponseCurrentAccessToken struct {
|
||||
// in:body
|
||||
Body api.CurrentAccessToken `json:"body"`
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// CronList
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// Issue
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// PublicKey
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// ServerVersion
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// NodeInfo
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// NotificationThread
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
"code.gitea.io/gitea/services/forms"
|
||||
api "gitea.dev/modules/structs"
|
||||
"gitea.dev/services/forms"
|
||||
)
|
||||
|
||||
// not actually a response, just a hack to get go-swagger to include definitions
|
||||
@@ -36,6 +36,8 @@ type swaggerParameterBodies struct {
|
||||
EditIssueOption api.EditIssueOption
|
||||
// in:body
|
||||
EditDeadlineOption api.EditDeadlineOption
|
||||
// in:body
|
||||
IssueAssigneesOption api.IssueAssigneesOption
|
||||
|
||||
// in:body
|
||||
CreateIssueCommentOption api.CreateIssueCommentOption
|
||||
@@ -168,6 +170,9 @@ type swaggerParameterBodies struct {
|
||||
// in:body
|
||||
CreatePullReviewComment api.CreatePullReviewComment
|
||||
|
||||
// in:body
|
||||
CreatePullReviewCommentReplyOptions api.CreatePullReviewCommentReplyOptions
|
||||
|
||||
// in:body
|
||||
SubmitPullReviewOptions api.SubmitPullReviewOptions
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// Organization
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// Package
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// Repository
|
||||
@@ -348,7 +348,7 @@ type swaggerFileDeleteResponse struct {
|
||||
// swagger:response TopicListResponse
|
||||
type swaggerTopicListResponse struct {
|
||||
// in: body
|
||||
Body []api.TopicResponse `json:"body"`
|
||||
Body api.TopicListResponse `json:"body"`
|
||||
}
|
||||
|
||||
// TopicNames
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
package swagger
|
||||
|
||||
import api "code.gitea.io/gitea/modules/structs"
|
||||
import api "gitea.dev/modules/structs"
|
||||
|
||||
// GeneralRepoSettings
|
||||
// swagger:response GeneralRepoSettings
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
activities_model "code.gitea.io/gitea/models/activities"
|
||||
api "code.gitea.io/gitea/modules/structs"
|
||||
activities_model "gitea.dev/models/activities"
|
||||
api "gitea.dev/modules/structs"
|
||||
)
|
||||
|
||||
// User
|
||||
@@ -46,7 +46,7 @@ type swaggerResponseUserHeatmapData struct {
|
||||
// swagger:response UserSettings
|
||||
type swaggerResponseUserSettings struct {
|
||||
// in:body
|
||||
Body []api.UserSettings `json:"body"`
|
||||
Body api.UserSettings `json:"body"`
|
||||
}
|
||||
|
||||
// BadgeList
|
||||
|
||||
Reference in New Issue
Block a user