Hello,
I am trying to understand an api in apigee and I find some lines of text inside ## between the steps of the flow. I can't find in the documentation what it's the use for it, so I don't know what this is doing.
Can someone explain?
<PreFlow name="PreFlow"> <Request> <Step> <Name>Assign.CopyRequestHeaders</Name> </Step> <Step> <Name>JsCall.GenerateAndAssignFlowVariables</Name> </Step> #api_data_retrieval# #configuration_constants_read# #access_transaction_id# #security_protection_xss# #JsCall.Logging.ULFF# #spike_arrest# #throttling_quota_api_1min# #access_payload_size# #access_content_negotiation# #validation_content_type# <Step> <Condition>((originalVerb == "POST") or (originalVerb == "PUT") or (originalVerb == "PATCH"))</Condition> <Name>Jsc.ValidateRequestPayloadStructure</Name> </Step> <Step> <Name>ExtractRequestId</Name> </Step> #network_cors_simple_req# </Request> <Response/> </PreFlow>
That looks like a template to me.
Apigee Edge doesn't interpret text inside #.
I can imagine a templating engine that takes the text you provided and inserts specific content where #spike_arrest# appears, and so on, resulting in a valid, complete API Proxy Endpoint configuration.
I don't know of a templating tool that has been used like this with Apigee Edge. Having said that, it wouldn't be hard to produce and it's possible that there's a common one I don't know about.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |