Documentation
Discord
Github
Dockerhub
$ ./equal.run --do=init_db $ ./equal.run --do=init_package --package=core --import=true $ ./equal.run --get=model_collect --entity='core\User' [ { "id": 1, "name": "root@host.local", "state": "instance", "modified": "2023-07-31T09:01:09+00:00" }, { "id": 2, "name": "cedric@equal.run", "state": "instance", "modified": "2023-07-31T11:13:26+00:00" } ] $ ./equal.run --get=model_read --entity='core\User' --ids=[2] --fields='{firstname,lastname,groups_ids:{id,name}}' [ { "firstname": "C\u00e9dric", "lastname": "Fran\u00e7oys", "groups_ids": [ { "id": 2, "name": "users", "state": "instance", "modified": "2023-07-31T00:00:00+00:00" } ], "name": "cedric@equal.run", "id": 2, "state": "instance", "modified": "2023-07-31T11:13:26+00:00" } ] $ ./equal.run --get=model_read --announce { "announcement": { "description": "Lists objects of provided ids with requested fields.", "params": { "entity": { "description": "Full name (with namespace) of requested entity.", "type": "string", "required": true }, "ids": { "description": "List of unique identifiers of the objects to read.", "type": "array", "required": true }, "fields": { "description": "Names of fields for which value is requested.", "type": "array", "default": [ "id", "name" ] }, "lang": { "description": "Language to use for multilang fields.", "type": "string", "usage": "language/iso-639", "default": "en" }, "order": { "description": "Column to use for sorting results.", "type": "string", "default": "id" }, "sort": { "description": "The direction (i.e. 'asc' or 'desc').", "type": "string", "selection": [ "asc", "desc" ] "default": "asc" } }, "response": { "content-type": "application\/json", "charset": "utf-8", "accept-origin": [ "*" ] } } } $ ./equal.run --show=welcome --announce { "announcement": { "description": "Redirect to `/welcome` public folder.", "params": [], "response": { "location": "\/welcome\/" } } }