expose star activity to swagger

This commit is contained in:
Michael Jerger 2023-11-09 21:59:51 +01:00
parent d7dfdca8b9
commit a1e9783cec
2 changed files with 4 additions and 3 deletions

View file

@ -27,6 +27,7 @@ var KnownSourceTypes = SourceTypes{
}
// Star activity data type
// swagger:model
type Star struct {
// swagger:ignore
ap.Activity

View file

@ -21,7 +21,7 @@
},
"version": "{{AppVer | JSEscape | Safe}}"
},
"basePath": "/api/v1",
"basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1",
"paths": {
"/activitypub/repository-id/{repository-id}": {
"get": {
@ -23183,7 +23183,7 @@
"x-go-package": "code.gitea.io/gitea/modules/forgefed"
},
"Star": {
"description": "Star activity for adding a star to an repository",
"description": "Star activity data type",
"type": "object",
"properties": {
"Source": {
@ -25090,4 +25090,4 @@
"TOTPHeader": []
}
]
}
}