adds post creation api endpoint to spec.