Adding all retrieving functionalities for the API