Added media endpoint list function