@zohodesk/haas-api-creator
Version:
This is used to call server side api call as js api call in client side - hc -api javascript es6
32 lines • 702 B
JavaScript
import { constants } from '@zohodesk/js-api-creator';
export default {
"asap.apps": {
// Get ASAP widgets list
url: "asapApps",
method: constants.get
},
"asap.new": {
// Create new ASAP widget
url: "asapApp",
method: constants.post
},
"asap.app": {
// Get ASAP widget details
url: "asapApps/:id",
method: constants.get
},
"asap.update": {
// Update the ASAP widget details
url: "asapApps/:id",
method: constants.patch
},
"asap.deleteIt": {
// Delete the ASAP widget
url: "asapApps/:id",
method: constants.deleteIt
},
"asap.uploadp12File": {
url: "asapApps/:id/uploadAPNCertificate",
method: constants.post
}
};