Skip to content

Commit

Permalink
PMM-5816 logs.zip endpoint in Swagger. (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk authored Feb 11, 2020
1 parent d903ee1 commit 51f62e6
Show file tree
Hide file tree
Showing 7 changed files with 422 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ required = [
"github.com/mwitkow/go-proto-validators/protoc-gen-govalidators",
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway",
"github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger",
"github.com/go-openapi/runtime/client",
"github.com/go-openapi/spec",
"github.com/go-swagger/go-swagger/cmd/swagger",
"github.com/BurntSushi/go-sumtype",
Expand Down
113 changes: 113 additions & 0 deletions api/serverpb/json/client/server/logs_parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

156 changes: 156 additions & 0 deletions api/serverpb/json/client/server/logs_responses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions api/serverpb/json/client/server/server_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions api/serverpb/json/header.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,45 @@
"https",
"http"
],
"paths": {
"/logs.zip": {
"get": {
"tags": [
"Server"
],
"summary": "Logs returns logs of the PMM-Server.",
"operationId": "Logs",
"produces": ["application/zip"],
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"type": "file"
}
},
"default": {
"description": "An error response.",
"schema": {
"description": "ErrorResponse is a message returned on HTTP error.",
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"error": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
}
}
}
},
"definitions": {
"serverpbErrorResponse": {
"description": "ErrorResponse is a message returned on HTTP error.",
Expand Down
Loading

0 comments on commit 51f62e6

Please sign in to comment.