Debugging involves the following steps :
1. Start a debug session by creating a debug session. 2. Send a message for that deployed API proxy. 3. Retrieve the debug data associated with the debug session. The data can be fetched by issuing a GET call on the session.
4. Close the debug session. (Closing the debug session discards all the associated data).
For Step 1 - the following management api is to be used :
POST /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions?session=<name>&timeout=<value>
However, when we want to do step 3 - a session transaction id is required :
GET /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions/{session_ID}/data/{transaction_ID}
How do we retrieve the session and transaction id. Steps 1 & 2 do not seem to provide the same.
Solved! Go to Solution.
GET /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions/{session_ID}/data/
will return the list of transaction_ids.
Regards,
Vijayakumar.
GET /environments/{environment_name}/apis/{api_name}/revisions/{revision_number}/debugsessions/{session_ID}/data/
will return the list of transaction_ids.
Regards,
Vijayakumar.
Thank you. This works.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |