UNPKG

@cocreate/api

Version:

A simple api helper component in vanilla javascript used by JavaScript developers to create thirdparty api intergrations. CoCreate-api includes the client component and server side for api processing. Thirdparty apis can be accessible using HTML5 attribut

39 lines (28 loc) 845 B
import api from "@cocreate/api"; const CoCreateExample = { name: "example", endPoints: { 'tokens.create':{}, create: { onload: function (name, endPoint, element) { }, input: function (name, endPoint, element) { }, action: function (name, endPoint, element){ }, observer: function (name, endPoint, element) { }, request: function (name, endPoint, element) { }, response: function (name, endPoint, element) { }, read: true, realtime: true, save: true, update: true, listen: true } } }; api.init(CoCreateExample); export default CoCreateExample;