added get_sessionid function
Added order_by default values for the api definition