Fix swagger note endpoint typo
This commit is contained in:
parent
05d9a6dc1d
commit
58d937eb29
2 changed files with 48 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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": [
|
||||
|
|
Reference in a new issue