rest api
Consumer API for rest api.
If a route does not start with http(s)://
it will take the host defined in settings util settings.get('restApi.url')
.
For requests needing authorization you can set options { authorized: true }
it will set Authorization: Bearer ${token}
with the token taken from settings util settings.get('restApi.token')
.
Request options
Name
Type
Description
authorized
boolean
Set Bearer token like described in above hint
headers
object
Additional headers to send
Last updated