Oracle interview question

Write some pseudocode to demonstrate how to fetch data from an endpoint.