Adding post ranking endpoint for the api