Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated path and param #18

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
240 changes: 2 additions & 238 deletions pkg/docs/operator/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,8 @@ const docTemplate = `{
"type": "string",
"description": "sink name",
"name": "name",
"in": "path"
},
{
"type": "string",
"description": "sink type (logMetricRules, logExportRules)",
"name": "type",
"in": "query"
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -173,239 +168,8 @@ const docTemplate = `{
"type": "string",
"description": "log export rule name to delete",
"name": "rule",
"in": "path"
},
{
"type": "string",
"description": "deprecated;metric rule name to delete",
"name": "ruleName",
"in": "query"
},
{
"type": "string",
"description": "deprecated;bucket name to delete",
"name": "bucketName",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"400": {
"description": "Invalid parameters",
"schema": {
"type": "string"
}
},
"404": {
"description": "Not found",
"schema": {
"type": "string"
}
},
"405": {
"description": "Method not allowed",
"schema": {
"type": "string"
}
},
"500": {
"description": "Failed to delete sink",
"schema": {
"type": "string"
}
}
}
}
},
"/api/v1/namespaces/{namespace}/sinks/{name}/{type}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Get"
],
"summary": "List sinks",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "namespace name",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sink name",
"name": "name",
"in": "path"
},
{
"type": "string",
"description": "deprecated;sink type (logMetricRules, logExportRules)",
"name": "type",
"in": "path"
},
{
"type": "string",
"description": "sink type (logMetricRules, logExportRules)",
"name": "type",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.Sink"
}
}
},
"400": {
"description": "Invalid parameters",
"schema": {
"type": "string"
}
},
"405": {
"description": "Method not allowed",
"schema": {
"type": "string"
}
},
"500": {
"description": "Failed to get sink",
"schema": {
"type": "string"
}
}
}
},
"put": {
"consumes": [
"application/json"
],
"tags": [
"Put"
],
"summary": "Put log sink",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "namespace name",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sink name",
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "deprecated;sink type (logMetricRules, logExportRules)",
"name": "type",
"in": "path"
},
{
"description": "sink contentd; Each content in array must be unique",
"name": "sink",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Sink"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
},
"201": {
"description": "Created successfully",
"schema": {
"type": "string"
}
},
"400": {
"description": "Invalid parameters",
"schema": {
"type": "string"
}
},
"405": {
"description": "Method not allowed",
"schema": {
"type": "string"
}
},
"422": {
"description": "Restricted by limits",
"schema": {
"type": "string"
}
},
"500": {
"description": "Failed to get sink content",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"tags": [
"Delete"
],
"summary": "Delete sink",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "namespace name",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sink name",
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "deprecated;sink type (logMetricRules, logExportRules)",
"name": "type",
"in": "path"
},
{
"type": "string",
"description": "deprecated;metric rule name to delete",
"name": "ruleName",
"in": "query"
},
{
"type": "string",
"description": "deprecated;bucket name to delete",
"name": "bucketName",
"in": "query"
}
],
"responses": {
Expand Down
Loading
Loading