Open Registration

From DreamFactory
Jump to: navigation, search
DreamFactoryTutorialsOpen Registration
(Created page with "Working with illegal plumbing professional prevents you from getting a refund if there is a problem with the service. You can refer to the plumbing contractor to give you with...")
 
(Created page with "### Tutorial DreamFactory 2.0 support open user registration. By default it is disabled. To enable it, log into the admin console, click on the services tab and select the u...")
Line 1: Line 1:
Working with illegal plumbing professional prevents you from getting a refund if there is a problem with the service. You can refer to the plumbing contractor to give you with a copy of the permit, so that you could determine whether it is a legit service. Janitorial Services Orange County needs to provide insurance for employees as well as your house. If something occurs, the insurance policy company will pay the expense of the harm. If the plumber does not provide insurance, you have to spend for damages, prices, when a crash happens.<br><br>A house maid solution is most definitely the high street venture. You could keep to customers around your community and run your company by yourself. It would certainly be an uncommon occurrence that you would certainly require to hire extra help given that you will be taking care of just the scheduling and also the cleansing and also nothing else. Nevertheless, if you are taking into consideration having a bigger business, you might pick to start a [http://cleaningauckland2.pen.io/ commercial cleaning contractors nz] ser vice. Although you could still keep a janitorial company tiny and also run it by yourself, larger cleaning agreements may require you to hire at the very least one additional aid to fit all your cleansing routines and to provide a sustainable solution to your clients.<br><br>Keeping that stated, we are going to take an appearance at some points that both males (yes, males are just as part of the issue) as well as females could do to reverse common infertility issues and conceive normally.<br><br>You need them to keep our home in order. You need these expert cleaning items to dirt the sofa and also knock the particles off the vase. You need the brushes to dirt carpets as they lean as well as vulnerable to dust buildup. The office cleaning products need to exist so that the documents, heaps as well as lights are consistently free of any sort of filth that might difficulty you later. You also require the auto brush to make sure that you dry it after a good clean. Otherwise, after that the windshield of your motor vehicle will certainly never allow you have a clear viewing of the front.<br><br>Often plunging likewise shows effective to clear blocked drains. This is done by including excess water in the sink location. Then you could put the plunger directly over the drain and start diving repetitively. This will certainly aid in removing any obstructions from the water drainage water pipes.<br><br>You should establish the reason for the trouble just before getting plumbing system service. Through this Auckland New Zealand , you could obtain an accurate quote for plumbing work. You can name numerous manufacturers, plumbing as well as get quotes from them. Then, you could make a contrast in between the quotes and also narrow the list down to a couple of plumbing firms. Quality plumbing system solution is one of the most crucial, despite economical hourly prices. If you do not know which firm to function, you can obtain guidance from your neighbors or pals. Your next-door neighbors or buddies need to employ plumbing system service to in the past. Plumbing contractor has to provide cleaning company after the installation of pipelines. Some plumbing contractors offer complimentary cleaning solutions, while others require you to pay a small fee.<br><br>Silverware cleaning: Cover a baking or cake skillet with aluminum foil. Then include two cups water, with one tablespoon of cooking soft drink. After that heat till 150 level's. Later on, area stained flatware inside, and stains will certainly go away.<br><br>In case you loved this information and you would like to receive more details regarding [http://www.youtube.com/watch?v=VcKTaCOufRM commercial cleaning contractors] i implore you to visit our web site.
+
### Tutorial
 +
 
 +
DreamFactory 2.0 support open user registration. By default it is disabled. To enable it, log into the admin console,
 +
click on the services tab and select the user service. On the user service details page, click on the config tab. Check
 +
off the 'Allow Open Registration' checkbox there. On this config page you can also select a role in the 'Open Reg Role Id'
 +
field. This role will be used for all your self-registered users. If you would like your users to be verified using email
 +
confirmation then select an email service in the 'Open Reg Email Service Id' field. Choose an email template for your
 +
confirmation email in the 'Open Reg Email Template Id' field. If you do not choose an email service for Open Registration,  
 +
your users will be forced to choose their password during registration.
 +
 
 +
[[File:Tutorial open registration1.png|800px]]
 +
 
 +
### API Endpoint
 +
 
 +
<pre>POST https://{url}/api/v2/user/register?login={bool}</pre>
 +
Request body:
 +
<source lang="JavaScript">
 +
{
 +
  "email": "user_email",        //Required field.
 +
  "password": "password",      //Required only when no Open Registration Email Service is selected.
 +
  "first_name": "first_name",
 +
  "last_name": "last_name"      //Required field.
 +
}
 +
</source>
 +
 
 +
 
 +
### Example - Open Registration when email confirmation is required.
 +
 
 +
* Request body:
 +
<source lang="JavaScript">
 +
{
 +
  "email": "[email protected]",
 +
  "first_name": "John",  
 +
  "last_name": "Doe"
 +
}
 +
</source>
 +
* Request URL:
 +
<pre>POST https://foo.com/api/v2/user/register</pre>
 +
* Response
 +
<source lang="JavaScript">
 +
{
 +
    "success":true
 +
}
 +
</source>
 +
 
 +
### Example - Open Registration and login when email confirmation is required.  
 +
 
 +
* Request body:
 +
<source lang="JavaScript">
 +
{
 +
  "email": "[email protected].com",
 +
  "first_name": "John",  
 +
  "last_name": "Doe"
 +
}
 +
</source>
 +
* Request URL:
 +
<pre>POST https://foo.com/api/v2/user/register?login=true</pre>
 +
* Response
 +
<source lang="JavaScript">
 +
{
 +
    "success":true,
 +
    "confirmation_required": true
 +
}
 +
</source>
 +
 
 +
> _Note: Forcing login during open registration will not work when email confirmation is required. Therefore, response
 +
> includes "confirmation_required":true._
 +
 
 +
### Example - Open Registration when email confirmation is turned off.  
 +
 
 +
* Request body:
 +
<source lang="JavaScript">
 +
{
 +
  "email": "[email protected].com",
 +
  "password":"secret",
 +
  "first_name": "John", 
 +
  "last_name": "Doe"
 +
}
 +
</source>
 +
* Request URL:
 +
<pre>POST https://foo.com/api/v2/user/register</pre>
 +
* Response
 +
<source lang="JavaScript">
 +
{
 +
    "success":true
 +
}
 +
</source>
 +
 
 +
### Example - Open Registration and login when email confirmation is turned off.  
 +
 
 +
* Request body:
 +
<source lang="JavaScript">
 +
{
 +
  "email": "[email protected].com",
 +
  "password":"secret",
 +
  "first_name": "John", 
 +
  "last_name": "Doe"
 +
}
 +
</source>
 +
* Request URL:
 +
<pre>POST https://foo.com/api/v2/user/register?login=true</pre>
 +
* Response
 +
<source lang="JavaScript">
 +
{
 +
"success": true,
 +
"session_token": "abc.123.efg"
 +
}
 +
</source>

Revision as of 20:20, 13 October 2015

      1. Tutorial

DreamFactory 2.0 support open user registration. By default it is disabled. To enable it, log into the admin console, click on the services tab and select the user service. On the user service details page, click on the config tab. Check off the 'Allow Open Registration' checkbox there. On this config page you can also select a role in the 'Open Reg Role Id' field. This role will be used for all your self-registered users. If you would like your users to be verified using email confirmation then select an email service in the 'Open Reg Email Service Id' field. Choose an email template for your confirmation email in the 'Open Reg Email Template Id' field. If you do not choose an email service for Open Registration, your users will be forced to choose their password during registration.

Tutorial open registration1.png

      1. API Endpoint
POST https://{url}/api/v2/user/register?login={bool}

Request body:

{
  "email": "user_email",        //Required field.
  "password": "password",       //Required only when no Open Registration Email Service is selected.
  "first_name": "first_name",
  "last_name": "last_name"      //Required field.
}


      1. Example - Open Registration when email confirmation is required.
  • Request body:
{
  "email": "[email protected]",
  "first_name": "John",   
  "last_name": "Doe"
}
  • Request URL:
POST https://foo.com/api/v2/user/register
  • Response
{
    "success":true
}
      1. Example - Open Registration and login when email confirmation is required.
  • Request body:
{
  "email": "[email protected]",
  "first_name": "John",   
  "last_name": "Doe"
}
  • Request URL:
POST https://foo.com/api/v2/user/register?login=true
  • Response
{
    "success":true,
    "confirmation_required": true
}

> _Note: Forcing login during open registration will not work when email confirmation is required. Therefore, response > includes "confirmation_required":true._

      1. Example - Open Registration when email confirmation is turned off.
  • Request body:
{
  "email": "[email protected]",
  "password":"secret",
  "first_name": "John",   
  "last_name": "Doe"
}
  • Request URL:
POST https://foo.com/api/v2/user/register
  • Response
{
    "success":true
}
      1. Example - Open Registration and login when email confirmation is turned off.
  • Request body:
{
  "email": "[email protected]",
  "password":"secret",
  "first_name": "John",   
  "last_name": "Doe"
}
  • Request URL:
POST https://foo.com/api/v2/user/register?login=true
  • Response
{
	"success": true,
	"session_token": "abc.123.efg"
}