|
GqlCreateCmd.Flags().StringVarP(&targetUrlRef, "apikey-location", "", |
Using:
apigeecli apis create graphql --name people-graphql -f people.graphql --basepath /people-graphql --target-url-ref my_target_url_var --apikey-location request.header.x-apikey
Creates an Assign Message on Target PreFlow with
<AssignMessage async="false" continueOnError="false" enabled="true" name="Set-Target-1">
<AssignVariable>
<Name>target.url</Name>
<Ref>request.header.x-apikey</Ref>
</AssignVariable>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
</AssignMessage>
It should use <Ref>my_target_url_var</Ref>
It should support the --target-url string