Skip to content

Commit

Permalink
Minor apidocs update (#2964)
Browse files Browse the repository at this point in the history
* Update apidocs with security and base path

* Move apidocs files to be compliant with the buf lint command

* Use the same api version as in other packages (v1alpha1)
  • Loading branch information
antgamdia committed Jun 10, 2021
1 parent d33aa86 commit a4996b5
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 137 deletions.
52 changes: 51 additions & 1 deletion cmd/kubeapps-apis/docs/kubeapps-apis.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
}
],
"host": "127.0.0.1:8080",
"basePath": "/apis",
"schemes": [
"http"
"http",
"https"
],
"consumes": [
"application/json"
Expand All @@ -45,6 +47,10 @@
"$ref": "#/definitions/v1alpha1GetPackageMetaResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -88,6 +94,10 @@
"$ref": "#/definitions/v1alpha1GetPackageRepositoriesResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -126,6 +136,10 @@
"$ref": "#/definitions/v1alpha1GetAvailablePackagesResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -165,6 +179,10 @@
"$ref": "#/definitions/v1alpha1GetConfiguredPluginsResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand All @@ -188,6 +206,10 @@
"$ref": "#/definitions/v1alpha1GetPackageMetaResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -232,6 +254,10 @@
"$ref": "#/definitions/v1alpha1GetPackageRepositoriesResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -271,6 +297,10 @@
"$ref": "#/definitions/v1alpha1GetAvailablePackagesResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -310,6 +340,10 @@
"$ref": "#/definitions/v1alpha1GetPackageRepositoriesResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -349,6 +383,10 @@
"$ref": "#/definitions/v1alpha1GetAvailablePackagesResponse"
}
},
"401": {
"description": "Returned when the user does not have permission to access the resource.",
"schema": {}
},
"default": {
"description": "An unexpected error response.",
"schema": {
Expand Down Expand Up @@ -628,6 +666,18 @@
"title": "Plugin"
}
},
"securityDefinitions": {
"ApiKeyAuth": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
},
"security": [
{
"ApiKeyAuth": []
}
],
"externalDocs": {
"description": "Kuebapps GitHub repository",
"url": "https://github.com/kubeapps/kubeapps"
Expand Down

0 comments on commit a4996b5

Please sign in to comment.