Added Queryparam definition to publishPost method