Create Schemas With Custom Password
Configuring A Schema
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": { "Student": { "$ref": "#/definitions/Student" } },
"required": ["Student"],
"title": "Student",
"definitions": {
"Student": {
"$id": "#/properties/Student",
"type": "object",
"title": "Studentschema",
"required": ["name", "phoneNumber", "email", "school"],
"uniqueIndexFields": ["phoneNumber"],
"properties": {
"name": { "type": "string" },
"phoneNumber": { "type": "string" },
"email": { "type": "string" },
"school": { "type": "string" },
// this field will be considered as password
"password": { "type": "string", "minLength": 8 }
}
}
},
"_osConfig": {
"ownershipAttributes": [
{
"email": "/email",
"mobile": "/phoneNumber",
"userId": "/phoneNumber",
// password ownership attribute required
// to map field to password
"password": "/password"
}
],
"inviteRoles": ["anonymous"]
}
}
Inviting An Entity
Getting the Access Token
Retrieving An Entity
Last updated