mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 08:59:31 -05: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
|
// Star activity data type
|
||||||
|
// swagger:model
|
||||||
type Star struct {
|
type Star struct {
|
||||||
// swagger:ignore
|
// swagger:ignore
|
||||||
ap.Activity
|
ap.Activity
|
||||||
|
|
4
templates/swagger/v1_json.tmpl
generated
4
templates/swagger/v1_json.tmpl
generated
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue