mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 21:53:51 +03:00
expose star activity to swagger
This commit is contained in:
parent
d7dfdca8b9
commit
a1e9783cec
2 changed files with 4 additions and 3 deletions
|
@ -27,6 +27,7 @@ var KnownSourceTypes = SourceTypes{
|
|||
}
|
||||
|
||||
// Star activity data type
|
||||
// swagger:model
|
||||
type Star struct {
|
||||
// swagger:ignore
|
||||
ap.Activity
|
||||
|
|
6
templates/swagger/v1_json.tmpl
generated
6
templates/swagger/v1_json.tmpl
generated
|
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue