Router
-instance which is exposed on the writer.router
-property. This router
-property contains functions for the normal HTTP methods, get()
post()
, del()
, and put()
.api.router.post(string path, object parameters)
api.router.put(string path, object parameters)
api.router.get(string path, object parameters)
api.router.del(string path, object parameters)
path
and parameters
specificationpath
is a string which should point to an internal Writer API resource. For the purposespath
should be '/api/resourceproxy'
parameters
is an object which is converted to a querystring and is appended to the path
parameter.url
-property to define which external resource to fetchheaders
, and body
-properties are forwarded to the external resourcex-append-authorization
-property to headers
-property to forward any Authorizationresourceproxy
resourceproxy