Generic REST resource creation.
rockr.post(
conn,
...,
query = list(),
body = "",
contentType = "application/x-rscript",
acceptType = "application/octet-stream, application/json",
callback = NULL
)A rockr connection object.
Resource path segments.
Named list of query parameters.
The body of the request.
The type of the body content. Default is 'application/x-rscript'.
The type of the body content. Default is 'application/octet-stream, application/json', i.e. a serialized R object or an error message.
A callback function to handle the response object.
The response output object.
Other REST functions:
rockr.delete(),
rockr.get(),
rockr.put()