Fix rest_pastebin example

Bring the rest_pastebin example in line with REST API changes for
creating resources.