github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/examples/add-api-definition-to-application/add-api-definition-to-application.graphql (about) 1 # Code generated by Compass integration tests, DO NOT EDIT. 2 mutation { 3 result: addAPIDefinitionToApplication( 4 appID: "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" 5 in: { 6 name: "new-api-name" 7 targetURL: "https://target.url" 8 spec: { 9 type: OPEN_API 10 format: JSON 11 fetchRequest: { url: "https://foo.bar" } 12 } 13 } 14 ) { 15 id 16 name 17 description 18 spec { 19 id 20 data 21 format 22 type 23 fetchRequest { 24 url 25 auth { 26 credential { 27 ... on BasicCredentialData { 28 username 29 password 30 } 31 ... on CertificateOAuthCredentialData { 32 clientId 33 certificate 34 url 35 } 36 ... on OAuthCredentialData { 37 clientId 38 clientSecret 39 url 40 } 41 } 42 oneTimeToken { 43 __typename 44 token 45 used 46 expiresAt 47 } 48 certCommonName 49 accessStrategy 50 additionalHeaders 51 additionalQueryParams 52 requestAuth { 53 csrf { 54 tokenEndpointURL 55 credential { 56 ... on BasicCredentialData { 57 username 58 password 59 } 60 ... on OAuthCredentialData { 61 clientId 62 clientSecret 63 url 64 } 65 ... on CertificateOAuthCredentialData { 66 clientId 67 certificate 68 url 69 } 70 } 71 additionalHeaders 72 additionalQueryParams 73 } 74 } 75 } 76 mode 77 filter 78 status { 79 condition 80 message 81 timestamp 82 } 83 } 84 } 85 targetURL 86 group 87 version { 88 value 89 deprecated 90 deprecatedSince 91 forRemoval 92 } 93 } 94 }