Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
97 lines (97 sloc) 2.46 KB
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://github.com/route4me/route4me-json-schemas/blob/master/Members.dtd",
"title": "Members",
"type": "object",
"description": "For new account registration. url: https://www.route4me.com/actions/register_action.php",
"required": [
"strEmail",
"strPassword_1",
"strPassword_2",
"strFirstName",
"strLastName",
"strIndustry",
"chkTerms",
"plan"
],
"properties": {
"strEmail": {
"type": "string",
"title": "Email",
"format": "email",
"descrption": "E-mail address of the user that was used for site registration"
},
"strPassword_1": {
"type": "string",
"title": "Password 1",
"description": "Password associated with this e-mail address"
},
"strPassword_2": {
"type": "string",
"title": "Password 2",
"descrption": "Password confirmation field"
},
"strFirstName": {
"type": "string",
"title": "First name",
"descrption": "The first name of the user"
},
"strLastName": {
"type": "string",
"title": "Last name",
"descrption": "The last name of the user"
},
"strIndustry": {
"type": "string",
"title": "Industry",
"descrption": "The industry of the user (dropdown of industries below)"
},
"strZIP": {
"type": "string",
"title": "Zip code",
"pattern": "^[0-9]{5,7}$",
"descrption": "The 5-7 digit ZIP code (minimum length of 5))"
},
"chkTerms": {
"enum": [
0,
1
],
"title": "Check terms",
"descrption": "If the user agreed to the terms of the site checkbox"
},
"device_id": {
"type": "string",
"title": "Device id",
"descrption": "If a device ID is passed, the registration page assumes a temporary member associated with that device id exists. The registration page updates that member's information, sets an email address. After completion, the member is no longer temporary and the member_id is preserved."
},
"plan": {
"enum": [
"free",
"basic",
"pro",
"premium",
"personal"
],
"title": "Check terms",
"descrption": "The plan type that the user selected"
},
"format ": {
"enum": [
"xml",
"json"
],
"title": "Format",
"descrption": "ENUM(xml, json) Returns the new member id, authenticated session id and membership restrictions"
},
"business_member_type": {
"enum": [
"BUSINESS_OWNER_OPERATOR",
"BUSINESS_EMPLOYEE",
"INDIVIDUAL"
],
"title": "Check terms",
"descrption": "The plan type that the user selected"
}
}
}