rest api
Consumer API for rest api.
import {
getJSON,
postJSON,
putJSON,
delJSON,
postData,
putData,
} from '@dormakaba/digital-reactnative-client';
const res = getJSON(route, options);
const res = postJSON(route, data, options);
const res = putJSON(route, data, options);
const res = delJSON(route, options);
const res = postData(route, data, options);
const res = putData(route, data, options);
Request options
Name
Type
Description
authorized
boolean
Set Bearer token like described in above hint
headers
object
Additional headers to send
Last updated