Fix swagger note endpoint typo

This commit is contained in:
Anthony Wang 2023-01-01 18:44:44 +00:00
parent 05d9a6dc1d
commit 58d937eb29
Signed by: a
GPG key ID: 42A5B952E6DD8D38
2 changed files with 48 additions and 1 deletions

View file

@ -16,7 +16,7 @@ func Note(ctx *context.APIContext) {
// swagger:operation GET /activitypub/note/{username}/{reponame}/{id}/{noteid} activitypub activitypubNote
// ---
// summary: Returns the Note object for a comment to an issue or PR
// produces
// produces:
// - application/activity+json
// parameters:
// - name: username

View file

@ -23,6 +23,53 @@
},
"basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1",
"paths": {
"/activitypub/note/{username}/{reponame}/{id}/{noteid}": {
"get": {
"produces": [
"application/activity+json"
],
"tags": [
"activitypub"
],
"summary": "Returns the Note object for a comment to an issue or PR",
"operationId": "activitypubNote",
"parameters": [
{
"type": "string",
"description": "username of the user",
"name": "username",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name of the repo",
"name": "reponame",
"in": "path",
"required": true
},
{
"type": "string",
"description": "ID number of the issue or PR",
"name": "id",
"in": "path",
"required": true
},
{
"type": "string",
"description": "ID number of the comment",
"name": "noteid",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"$ref": "#/responses/ActivityPub"
}
}
}
},
"/activitypub/repo/{username}/{reponame}": {
"get": {
"produces": [