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 // Star activity data type
// swagger:model
type Star struct { type Star struct {
// swagger:ignore // swagger:ignore
ap.Activity ap.Activity

View file

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