Built-in service CRUD

Crud service implements the REST API based on the model of the main CRUD operations (create, read, update, delete).

Available at <server address>/rest/crud.

The service requires the application registration and the data source `` dataRepo`` indication in the options of the service in deploy.json, as well as the `` auth`` authorization source to access user data. It is advisable to specify a repository with full security processing as a data repository, in order to work out access to objects taking into account dynamic security. For example:

{
  "modules": {
    "rest": {
      "globals": {
        "di": {
          "crud": {
            "module": "modules/rest/lib/impl/crud",
            "options": {
              "auth": "ion://auth",
              "dataRepo": "ion://securedDataRepo"
            }
          }

Authentication is carried out through all the main access types.

Example:

curl -X POST -u demo@local:ion-demo https://dnt.iondv.com/rest/crud

An example of a request to the crud service without parameters in dnt: test/modules/rest/crud.spec.js

/Checking crud service/# check if the response for null parameters is valid

By default, without the correct parameters - the server responds with the 404 error code

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /rest/crud</pre>
</body>
</html>

Information on interacting with crud through basic methods: