{ "namespace": "api-registration", "server": { "port": 80 }, "templates": [ { "name": "registration", "path": "/", "file_path": "example/template.html" } ], "apis": [ { "name": "registration", "path": "/registration", "method": "POST", "content_type": "application/json", "response_type": "application/json", "callback": { "plugin": "plugin.so", "function": "Registration" }, "params": [ { "name": "username", "label": "Username", "placeholder": "Enter Username", "type": "username", "validate": "username", "required": true, "min": 5, "max": 32 }, { "name": "fullname", "label": "Full Name", "placeholder": "Enter Full Name", "type": "name", "validate": "name", "required": true, "min": 5, "max": 32 }, { "name": "email", "label": "Email Address", "placeholder": "Enter Email Address", "type": "email", "required": true, "min": 5, "max": 32 }, { "name": "password", "label": "Password", "placeholder": "Enter Password", "type": "password", "required": true, "min": 8, "max": 120 }, { "name": "confirm_password", "label": "Confirm Password", "placeholder": "Enter Confirm Password", "type": "password", "required": true, "min": 8, "max": 120 } ] }, { "name": "verification", "path": "/verification/:id/:otp", "method": "GET", "content_type": "application/json", "response_type": "application/json", "callback": { "plugin": "plugin.so", "function": "Verification" }, "url_params": [ { "name": "id", "type": "textnumber", "required": true }, { "name": "otp", "type": "textnumber", "required": true } ] } ], "options": { "strapi_schemas": [ { "name": "test", "label": "Test", "fields": { "name": { "type": "text", "required": true }, "email": { "type": "email", "required": true } } } ] } }