fix snippet push api view
write basic create view as well as retrieve view