Entity
was successfully created. When you create Entity
resources with type resource
, Aidbox will on the fly initialize a storage for new resource type and generate CRUD & Search REST API.isOpen: true
flag, 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 UserSetting
resources by the standard FHIR URI template GET /{resourceType}
:query-sql
we see what query is executed by Aidbox to get these resources and can see that the table usersetting
was created. You can test it with the DB Console using the following query:UserSetting
resource using the REST Console:UserSetting
resource with:UserSetting
resource. For example, we can do this:theme
attribute to be a string
value from the specific enumeration:UserSetting
resources:theme
property has now type string
and is restricted by the enumeration [dark, white]
. Entity.isOpen = true
, this resource can have any additional attributes without a schema. We can turn this off by setting Entity.isOpen
to false
: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 menu
: