Skip to content

Commit 29b4d0d

Browse files
nacho-botweb-flow
andauthored
Syncing API (#482)
Co-authored-by: GitHub <[email protected]>
1 parent f25e3c2 commit 29b4d0d

File tree

7 files changed

+381
-173
lines changed

7 files changed

+381
-173
lines changed

packages/common/config/apis/hcc-insights/automation-hub/content.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8227,7 +8227,7 @@
82278227
"Purge": {
82288228
"properties": {
82298229
"finished_before": {
8230-
"default": "2025-03-15",
8230+
"default": "2025-03-23",
82318231
"description": "Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]'",
82328232
"format": "date-time",
82338233
"type": "string"

packages/common/config/apis/hcc-insights/insights-advisor/content.json

-164
Original file line numberDiff line numberDiff line change
@@ -1145,35 +1145,6 @@
11451145
],
11461146
"type": "object"
11471147
},
1148-
"PathwayInput": {
1149-
"description": "Serializer specifically for handling\nCREATE and UPDATE views for Pathways",
1150-
"properties": {
1151-
"component": {
1152-
"type": "string"
1153-
},
1154-
"description": {
1155-
"type": "string"
1156-
},
1157-
"name": {
1158-
"type": "string"
1159-
},
1160-
"publish_date": {
1161-
"format": "date-time",
1162-
"type": "string"
1163-
},
1164-
"resolution_risk": {
1165-
"type": "string"
1166-
}
1167-
},
1168-
"required": [
1169-
"component",
1170-
"description",
1171-
"name",
1172-
"publish_date",
1173-
"resolution_risk"
1174-
],
1175-
"type": "object"
1176-
},
11771148
"PreferencesInput": {
11781149
"description": "User preferences - separated from account settings.",
11791150
"properties": {
@@ -4162,89 +4133,9 @@
41624133
"tags": [
41634134
"pathway"
41644135
]
4165-
},
4166-
"post": {
4167-
"description": "This creates a new Pathway in the system.\nRequired fields are \"name,\" \"description,\"\n\"component,\" \"resolution_risk,\" and \"publish_date.\"\n\"name\" is a slug field and used to identify and\nretrieve Pathways for detailed analysis. The slug\nfor a Pathway is auto-generated by converting the\n\"name\" to lowercase and replacing all spaces with dashes.\n\"resolution_risk\" should be the \"name\" of the\nResolutionRisk to associate with this Pathway,\nnot the risk value.",
4168-
"operationId": "pathway_create",
4169-
"requestBody": {
4170-
"content": {
4171-
"application/json": {
4172-
"schema": {
4173-
"$ref": "#/components/schemas/PathwayInput"
4174-
}
4175-
},
4176-
"application/x-www-form-urlencoded": {
4177-
"schema": {
4178-
"$ref": "#/components/schemas/PathwayInput"
4179-
}
4180-
},
4181-
"multipart/form-data": {
4182-
"schema": {
4183-
"$ref": "#/components/schemas/PathwayInput"
4184-
}
4185-
}
4186-
},
4187-
"required": true
4188-
},
4189-
"responses": {
4190-
"200": {
4191-
"content": {
4192-
"application/json": {
4193-
"schema": {
4194-
"$ref": "#/components/schemas/PathwayInput"
4195-
}
4196-
}
4197-
},
4198-
"description": ""
4199-
}
4200-
},
4201-
"security": [
4202-
{
4203-
"x-rh-identity": []
4204-
}
4205-
],
4206-
"summary": "Create a new Pathway in the system",
4207-
"tags": [
4208-
"pathway"
4209-
]
42104136
}
42114137
},
42124138
"/api/insights/v1/pathway/{slug}/": {
4213-
"delete": {
4214-
"description": "This will DELETE an existing Pathway in the system.\nExisting pathways are identified and deleted by\nthe \"slug\" field.",
4215-
"operationId": "pathway_destroy",
4216-
"parameters": [
4217-
{
4218-
"in": "path",
4219-
"name": "slug",
4220-
"required": true,
4221-
"schema": {
4222-
"type": "string"
4223-
}
4224-
}
4225-
],
4226-
"responses": {
4227-
"204": {
4228-
"content": {
4229-
"application/json": {
4230-
"schema": {
4231-
"type": "string"
4232-
}
4233-
}
4234-
},
4235-
"description": ""
4236-
}
4237-
},
4238-
"security": [
4239-
{
4240-
"x-rh-identity": []
4241-
}
4242-
],
4243-
"summary": "Destroy an existing Pathway in the system",
4244-
"tags": [
4245-
"pathway"
4246-
]
4247-
},
42484139
"get": {
42494140
"description": "This returns an individual pathway based on slug.\nWill display the same information as is\nprovided in the list view.",
42504141
"operationId": "pathway_retrieve",
@@ -4369,61 +4260,6 @@
43694260
"tags": [
43704261
"pathway"
43714262
]
4372-
},
4373-
"put": {
4374-
"description": "This updates an existing Pathway already\ndefined in the system. All fields that are\nrequired to define a Pathway initially\nmay be updated here as well. Pathways are\nidenfitied and updated by the \"slug\" field.",
4375-
"operationId": "pathway_update",
4376-
"parameters": [
4377-
{
4378-
"in": "path",
4379-
"name": "slug",
4380-
"required": true,
4381-
"schema": {
4382-
"type": "string"
4383-
}
4384-
}
4385-
],
4386-
"requestBody": {
4387-
"content": {
4388-
"application/json": {
4389-
"schema": {
4390-
"$ref": "#/components/schemas/PathwayInput"
4391-
}
4392-
},
4393-
"application/x-www-form-urlencoded": {
4394-
"schema": {
4395-
"$ref": "#/components/schemas/PathwayInput"
4396-
}
4397-
},
4398-
"multipart/form-data": {
4399-
"schema": {
4400-
"$ref": "#/components/schemas/PathwayInput"
4401-
}
4402-
}
4403-
},
4404-
"required": true
4405-
},
4406-
"responses": {
4407-
"200": {
4408-
"content": {
4409-
"application/json": {
4410-
"schema": {
4411-
"$ref": "#/components/schemas/PathwayInput"
4412-
}
4413-
}
4414-
},
4415-
"description": ""
4416-
}
4417-
},
4418-
"security": [
4419-
{
4420-
"x-rh-identity": []
4421-
}
4422-
],
4423-
"summary": "Update an existing Pathway in the system",
4424-
"tags": [
4425-
"pathway"
4426-
]
44274263
}
44284264
},
44294265
"/api/insights/v1/pathway/{slug}/reports/": {

0 commit comments

Comments
 (0)