Skip to content

Commit

Permalink
added documentation for update repository info
Browse files Browse the repository at this point in the history
  • Loading branch information
punit-kulal committed Apr 16, 2021
1 parent d5ece1f commit 72a5d70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api/repository/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ type AddOkResponse struct {

const NAME string = "repository-name"

// AddHandler handles an repo add request
// AddHandler handles a repo add/update request
// swagger:operation PUT /repository/{repository_name} repository addOperation
//
// Add a chart repository to the server
//
// Add/Update a chart repository to the server.
// The endpoint is idempotent and a repository can be updated by using the force_update parameter to true
// ---
// produces:
// - application/json
Expand Down
3 changes: 2 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
},
"/repository/{repository_name}": {
"put": {
"description": "Add a chart repository to the server",
"description": "The endpoint is idempotent and a repository can be updated by using the force_update parameter to true",
"produces": [
"application/json"
],
Expand All @@ -98,6 +98,7 @@
"tags": [
"repository"
],
"summary": "Add/Update a chart repository to the server.",
"operationId": "addOperation",
"parameters": [
{
Expand Down

0 comments on commit 72a5d70

Please sign in to comment.