Entitywas successfully created. When you create
Entityresources with type
resource, Aidbox will on the fly initialize a storage for new resource type and generate CRUD & Search REST API.
isOpen: trueflag, this means that the resource does not have any specific structure and that you can store arbitrary data. This is useful when you do not know the exact resource structure, for example, while working on a prototype. Later we will make its schema more strict and will constraint it with additional validations.
UserSetting. You can list
UserSettingresources by the standard FHIR URI template
query-sqlwe see what query is executed by Aidbox to get these resources and can see that the table
usersettingwas created. You can test it with the DB Console using the following query:
UserSettingresource using the REST Console:
UserSettingresource. For example, we can do this:
themeattribute to be a
stringvalue from the specific enumeration:
themeproperty has now type
stringand is restricted by the enumeration
Entity.isOpen = true, this resource can have any additional attributes without a schema. We can turn this off by setting
additionalProperties: false(line 20 in the response above) which means that now our schema is closed. Let's test it by the request with additional property