github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/examples/add-bundle/add-bundle.graphql (about) 1 # Code generated by Compass integration tests, DO NOT EDIT. 2 mutation { 3 result: addBundle( 4 applicationID: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" 5 in: { 6 name: "bndl-app-1" 7 description: "Foo bar" 8 apiDefinitions: [ 9 { 10 name: "comments-v1" 11 description: "api for adding comments" 12 targetURL: "http://mywordpress.com/comments" 13 group: "comments" 14 spec: { 15 data: "{\"openapi\":\"3.0.2\"}" 16 type: OPEN_API 17 format: YAML 18 } 19 version: { 20 value: "v1" 21 deprecated: true 22 deprecatedSince: "v5" 23 forRemoval: false 24 } 25 } 26 { 27 name: "reviews-v1" 28 targetURL: "http://mywordpress.com/reviews" 29 spec: { 30 type: ODATA 31 format: JSON 32 fetchRequest: { 33 url: "http://mywordpress.com/apis" 34 auth: { 35 credential: { basic: { username: "admin", password: "secret" } } 36 additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}" 37 additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}" 38 } 39 mode: BUNDLE 40 filter: "odata.json" 41 } 42 } 43 } 44 { 45 name: "xml" 46 targetURL: "http://mywordpress.com/xml" 47 spec: { data: "odata", type: ODATA, format: XML } 48 } 49 ] 50 eventDefinitions: [ 51 { 52 name: "comments-v1" 53 description: "comments events" 54 spec: { 55 data: "{\"asyncapi\":\"1.2.0\"}" 56 type: ASYNC_API 57 format: YAML 58 } 59 group: "comments" 60 version: { 61 value: "v1" 62 deprecated: true 63 deprecatedSince: "v5" 64 forRemoval: false 65 } 66 } 67 { 68 name: "reviews-v1" 69 description: "review events" 70 spec: { 71 type: ASYNC_API 72 fetchRequest: { 73 url: "http://mywordpress.com/events" 74 auth: { 75 credential: { 76 oauth: { 77 clientId: "clientid" 78 clientSecret: "grazynasecret" 79 url: "url.net" 80 } 81 } 82 additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}" 83 additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}" 84 } 85 mode: BUNDLE 86 filter: "async.json" 87 } 88 format: YAML 89 } 90 } 91 ] 92 documents: [ 93 { 94 title: "Readme" 95 displayName: "display-name" 96 description: "Detailed description of project" 97 format: MARKDOWN 98 fetchRequest: { 99 url: "kyma-project.io" 100 auth: { 101 credential: { basic: { username: "admin", password: "secret" } } 102 additionalHeadersSerialized: "{\"header-A\":[\"ha1\",\"ha2\"],\"header-B\":[\"hb1\",\"hb2\"]}" 103 additionalQueryParamsSerialized: "{\"qA\":[\"qa1\",\"qa2\"],\"qB\":[\"qb1\",\"qb2\"]}" 104 } 105 mode: BUNDLE 106 filter: "/docs/README.md" 107 } 108 } 109 { 110 title: "Troubleshooting" 111 displayName: "display-name" 112 description: "Troubleshooting description" 113 format: MARKDOWN 114 data: "No problems, everything works on my machine" 115 } 116 ] 117 } 118 ) { 119 id 120 name 121 description 122 instanceAuthRequestInputSchema 123 instanceAuths { 124 id 125 context 126 inputParams 127 auth { 128 credential { 129 ... on BasicCredentialData { 130 username 131 password 132 } 133 ... on CertificateOAuthCredentialData { 134 clientId 135 certificate 136 url 137 } 138 ... on OAuthCredentialData { 139 clientId 140 clientSecret 141 url 142 } 143 } 144 oneTimeToken { 145 __typename 146 token 147 used 148 expiresAt 149 } 150 certCommonName 151 accessStrategy 152 additionalHeaders 153 additionalQueryParams 154 requestAuth { 155 csrf { 156 tokenEndpointURL 157 credential { 158 ... on BasicCredentialData { 159 username 160 password 161 } 162 ... on OAuthCredentialData { 163 clientId 164 clientSecret 165 url 166 } 167 ... on CertificateOAuthCredentialData { 168 clientId 169 certificate 170 url 171 } 172 } 173 additionalHeaders 174 additionalQueryParams 175 } 176 } 177 } 178 status { 179 condition 180 timestamp 181 message 182 reason 183 } 184 runtimeID 185 runtimeContextID 186 } 187 defaultInstanceAuth { 188 credential { 189 ... on BasicCredentialData { 190 username 191 password 192 } 193 ... on CertificateOAuthCredentialData { 194 clientId 195 certificate 196 url 197 } 198 ... on OAuthCredentialData { 199 clientId 200 clientSecret 201 url 202 } 203 } 204 oneTimeToken { 205 __typename 206 token 207 used 208 expiresAt 209 } 210 certCommonName 211 accessStrategy 212 additionalHeaders 213 additionalQueryParams 214 requestAuth { 215 csrf { 216 tokenEndpointURL 217 credential { 218 ... on BasicCredentialData { 219 username 220 password 221 } 222 ... on OAuthCredentialData { 223 clientId 224 clientSecret 225 url 226 } 227 ... on CertificateOAuthCredentialData { 228 clientId 229 certificate 230 url 231 } 232 } 233 additionalHeaders 234 additionalQueryParams 235 } 236 } 237 } 238 apiDefinitions { 239 data { 240 id 241 name 242 description 243 spec { 244 id 245 data 246 format 247 type 248 fetchRequest { 249 url 250 auth { 251 credential { 252 ... on BasicCredentialData { 253 username 254 password 255 } 256 ... on CertificateOAuthCredentialData { 257 clientId 258 certificate 259 url 260 } 261 ... on OAuthCredentialData { 262 clientId 263 clientSecret 264 url 265 } 266 } 267 oneTimeToken { 268 __typename 269 token 270 used 271 expiresAt 272 } 273 certCommonName 274 accessStrategy 275 additionalHeaders 276 additionalQueryParams 277 requestAuth { 278 csrf { 279 tokenEndpointURL 280 credential { 281 ... on BasicCredentialData { 282 username 283 password 284 } 285 ... on OAuthCredentialData { 286 clientId 287 clientSecret 288 url 289 } 290 ... on CertificateOAuthCredentialData { 291 clientId 292 certificate 293 url 294 } 295 } 296 additionalHeaders 297 additionalQueryParams 298 } 299 } 300 } 301 mode 302 filter 303 status { 304 condition 305 message 306 timestamp 307 } 308 } 309 } 310 targetURL 311 group 312 version { 313 value 314 deprecated 315 deprecatedSince 316 forRemoval 317 } 318 } 319 pageInfo { 320 startCursor 321 endCursor 322 hasNextPage 323 } 324 totalCount 325 } 326 eventDefinitions { 327 data { 328 id 329 name 330 description 331 group 332 spec { 333 id 334 data 335 type 336 format 337 fetchRequest { 338 url 339 auth { 340 credential { 341 ... on BasicCredentialData { 342 username 343 password 344 } 345 ... on CertificateOAuthCredentialData { 346 clientId 347 certificate 348 url 349 } 350 ... on OAuthCredentialData { 351 clientId 352 clientSecret 353 url 354 } 355 } 356 oneTimeToken { 357 __typename 358 token 359 used 360 expiresAt 361 } 362 certCommonName 363 accessStrategy 364 additionalHeaders 365 additionalQueryParams 366 requestAuth { 367 csrf { 368 tokenEndpointURL 369 credential { 370 ... on BasicCredentialData { 371 username 372 password 373 } 374 ... on OAuthCredentialData { 375 clientId 376 clientSecret 377 url 378 } 379 ... on CertificateOAuthCredentialData { 380 clientId 381 certificate 382 url 383 } 384 } 385 additionalHeaders 386 additionalQueryParams 387 } 388 } 389 } 390 mode 391 filter 392 status { 393 condition 394 message 395 timestamp 396 } 397 } 398 } 399 version { 400 value 401 deprecated 402 deprecatedSince 403 forRemoval 404 } 405 } 406 pageInfo { 407 startCursor 408 endCursor 409 hasNextPage 410 } 411 totalCount 412 } 413 documents { 414 data { 415 id 416 title 417 displayName 418 description 419 format 420 kind 421 data 422 fetchRequest { 423 url 424 auth { 425 credential { 426 ... on BasicCredentialData { 427 username 428 password 429 } 430 ... on CertificateOAuthCredentialData { 431 clientId 432 certificate 433 url 434 } 435 ... on OAuthCredentialData { 436 clientId 437 clientSecret 438 url 439 } 440 } 441 oneTimeToken { 442 __typename 443 token 444 used 445 expiresAt 446 } 447 certCommonName 448 accessStrategy 449 additionalHeaders 450 additionalQueryParams 451 requestAuth { 452 csrf { 453 tokenEndpointURL 454 credential { 455 ... on BasicCredentialData { 456 username 457 password 458 } 459 ... on OAuthCredentialData { 460 clientId 461 clientSecret 462 url 463 } 464 ... on CertificateOAuthCredentialData { 465 clientId 466 certificate 467 url 468 } 469 } 470 additionalHeaders 471 additionalQueryParams 472 } 473 } 474 } 475 mode 476 filter 477 status { 478 condition 479 message 480 timestamp 481 } 482 } 483 } 484 pageInfo { 485 startCursor 486 endCursor 487 hasNextPage 488 } 489 totalCount 490 } 491 } 492 }