|
1145 | 1145 | ],
|
1146 | 1146 | "type": "object"
|
1147 | 1147 | },
|
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 |
| - }, |
1177 | 1148 | "PreferencesInput": {
|
1178 | 1149 | "description": "User preferences - separated from account settings.",
|
1179 | 1150 | "properties": {
|
|
4162 | 4133 | "tags": [
|
4163 | 4134 | "pathway"
|
4164 | 4135 | ]
|
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 |
| - ] |
4210 | 4136 | }
|
4211 | 4137 | },
|
4212 | 4138 | "/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 |
| - }, |
4248 | 4139 | "get": {
|
4249 | 4140 | "description": "This returns an individual pathway based on slug.\nWill display the same information as is\nprovided in the list view.",
|
4250 | 4141 | "operationId": "pathway_retrieve",
|
|
4369 | 4260 | "tags": [
|
4370 | 4261 | "pathway"
|
4371 | 4262 | ]
|
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 |
| - ] |
4427 | 4263 | }
|
4428 | 4264 | },
|
4429 | 4265 | "/api/insights/v1/pathway/{slug}/reports/": {
|
|
0 commit comments