I am a beginner in apigee.
I have a very basic question: I will have to append a query parameter in my target endpoint URL.
For example: A Get operation
http://abc-company-api/v1/data/sales?authcode=yuozerrt
Also please note, this is not a dynamic parameter. It will remain same until my vendor changes it. My questions:
Thank you.
Use an AssignMessage policy. Configure it like this:
<AssignMessage name='AM-ApplyAuthCode'> <Set> <QueryParams> <QueryParam name='authcode'>yuozerrt</QueryParam> </QueryParams> </Set> </AssignMessage>
Attach this policy to the Request flow (PreFlow or PostFlow or whatever) of the Target Endpoint.
This is the best practice.
User | Count |
---|---|
7 | |
2 | |
2 | |
2 | |
1 |