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:
parent
dc1a82bf4c
commit
07cf963af3
2 changed files with 17 additions and 3 deletions
|
@ -28,7 +28,7 @@ var KnownSourceTypes = SourceTypes{
|
||||||
// Star activity for adding a star to an repository
|
// Star activity for adding a star to an repository
|
||||||
// swagger:model
|
// swagger:model
|
||||||
type Star struct {
|
type Star struct {
|
||||||
// swagger: ignore
|
// swagger:ignore
|
||||||
ap.Activity
|
ap.Activity
|
||||||
// Source identifies the system generated this Activity. Exact one value has to be specified.
|
// Source identifies the system generated this Activity. Exact one value has to be specified.
|
||||||
Source SourceType `jsonld:"source,omitempty"`
|
Source SourceType `jsonld:"source,omitempty"`
|
||||||
|
|
18
templates/swagger/v1_json.tmpl
generated
18
templates/swagger/v1_json.tmpl
generated
|
@ -21,7 +21,7 @@
|
||||||
},
|
},
|
||||||
"version": "{{AppVer | JSEscape | Safe}}"
|
"version": "{{AppVer | JSEscape | Safe}}"
|
||||||
},
|
},
|
||||||
"basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1",
|
"basePath": "/api/v1",
|
||||||
"paths": {
|
"paths": {
|
||||||
"/activitypub/repository-id/{repository-id}": {
|
"/activitypub/repository-id/{repository-id}": {
|
||||||
"get": {
|
"get": {
|
||||||
|
@ -23178,6 +23178,20 @@
|
||||||
},
|
},
|
||||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||||
},
|
},
|
||||||
|
"SourceType": {
|
||||||
|
"type": "string",
|
||||||
|
"x-go-package": "code.gitea.io/gitea/modules/forgefed"
|
||||||
|
},
|
||||||
|
"Star": {
|
||||||
|
"description": "Star activity for adding a star to an repository",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"Source": {
|
||||||
|
"$ref": "#/definitions/SourceType"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"x-go-package": "code.gitea.io/gitea/modules/forgefed"
|
||||||
|
},
|
||||||
"StateType": {
|
"StateType": {
|
||||||
"description": "StateType issue state type",
|
"description": "StateType issue state type",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -25076,4 +25090,4 @@
|
||||||
"TOTPHeader": []
|
"TOTPHeader": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in a new issue