(erp-delete! doctype name)
Sends a DELETE request, expects a document name
Sends a DELETE request, expects a document name
(erp-delete-all! doctype)
Deletes ALL the documents of a given doctype
Deletes ALL the documents of a given doctype
(erp-get doctype params)
Sends a GET request and returns the content of 'data'
Sends a GET request and returns the content of 'data'
(erp-get-by-name doctype name)
Returns a complete document by its unique name
Returns a complete document by its unique name
(erp-get1 doctype params)
Returns the first item according to the filters
Returns the first item according to the filters
(erp-login->cookies user password)
Execute a login into the ERPNext server, returns the cookies in case of success
Execute a login into the ERPNext server, returns the cookies in case of success
(erp-post! doctype body)
Sends a POST request (create), accepts a map as request body
Sends a POST request (create), accepts a map as request body
(erp-put! doctype name body)
Sends a PUT request (update), accepts a map as request body
Sends a PUT request (update), accepts a map as request body
(erp-rpc-post! method body)
Sends an RPC action request. Accepts a map as request body
Sends an RPC action request. Accepts a map as request body
(erp-submit-document! doctype name)
Submits a document by providing its doctype and name
Submits a document by providing its doctype and name
(format-parameter-map m)
Transforms map values into json. Used to serialize filters, fields and other URL parameters
Transforms map values into json. Used to serialize filters, fields and other URL parameters
(login! server user password)
Calls remote login and stores the base url and authentication cookies into the local atoms
Calls remote login and stores the base url and authentication cookies into the local atoms
(make-app-url doctype name)
Builds an ERPNext URL for application links
Builds an ERPNext URL for application links
(make-url doctype)
(make-url doctype name)
Builds an ERPNext URL for REST API
Builds an ERPNext URL for REST API
(response->data response)
Extracts the 'data' object from a response body
Extracts the 'data' object from a response body
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close