1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-21 08:31:27 -05:00

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": {