Abstract function for listing IDs (testing GETs )