added publisher rest api sample scripts