Entity CRUD API
This section describes the functionality of the CRUD API generated by both of the following mechanisms:
- Exporting a route using the
crud()
function on aChiselEntity
subclass. - Use of the ChiselNow quickstart tool.
In either case, it's assumed here that you know the endpoint URL that was generated for you, and are able to use that to construct HTTP requests as described.
note
For ChiselNow projects, when invoking methods that can mutate data (all
non-GET requests) you must add your API key in the X-Token
request header,
like this:
curl \
-X DELETE \
-H "X-Token: [YOUR-TOKEN]"
"https://host/dev/entity/[GENERATED-ID]"