Simple Schema
contents
You can edit below script and run it
{ "$$schema": "products", "$$header": { "action": "C" }, "productKey": "PROD-1", "productName": "Product 1", "address": "Address 1" }
Response
[]

Simple Schema

As an example, products is an entity. Three fields are shown in its properties.
{
	"$id": "products",
	"title": "products",
	"properties": {
		"productKey": {
			"title": "Product Key",
			"type": "number"
		},
		"productName": {
			"title": "Name of product",
			"type": "string",
			"minLength": 3
		},
		"address": {
			"title": "Address of manufacture",
			"type": "string"
		}
	}
}

Manipulating data of this schema

For adding new objects to this entity, a script like this is used:
{
	"$$schema": "products",
	"$$header": {
		"action": "C"
	},
	"productKey": "PROD-1",
	"productName": "Product 1",
	"address": "Address 1"
}

Retrieve objects

To retrieve all objects in the entity, use a script with "R" action like below.
(copy and paste then run it).
{
	"$$schema": "products",
	"$$header": {
		"action": "R"
	}
}

Update objects

To update objects, we can use a script with "U" action similar below.
(copy and paste then run it).
{
	"$$schema": "products",
	"$$header": {
		"action": "U",
		"filter": {
			"$$objid": "de710e66-da54-4fb3-ba84-2680ac313049"
		}
	},
	"productName": "new Name"
}