Child
Child is a generic way to interact with the Leverege api. It takes a path argument which it uses as the url in http requests. Most times it is used, the path is determined and maintained by the api library.
Methods
- get( options ) - makes a get request to the path intended for a single object
- list( options ) - makes a get request to the path intended for a group or collection
- post( body, options ) - make a post request to the path
- put( body, options ) - make a put request to the path
- patch( body, options ) - make a patch request to the path
- patchRaw( body, options ) - make a patch request to the path, will erase all old data
- delete( body, options ) - make a delete request to the path
- child( subpath ) - new Child instance with the subpath appended to the current path
- path() - returns the current path
- api() - returns the instance of the api