The API call /services/webservices/system/admin/resource/operations/createLink may be used. This procedure creates a link in the /services directory that points to a TABLE or a PROCEDURE resource. The link effectively publishes a resource so that it can be consumed by external clients.
One thing to be aware of is that if the published resource (e.g. "mypubView1") already exists, the call will fail with a message of the type below: A resource named "mypubView1" already exists at path "/services/webservices/examples" with the same type.
in which case, you would need to delete "/services/databases/examples/mypubView1" before executing the call.