Skip to content

Commit 2b0fd2b

Browse files
committed
Merge pull request #16 from janrain/topic/add-capi-code-samples
Topic/add capi code samples
2 parents baddefc + 133559d commit 2b0fd2b

9 files changed

+623
-0
lines changed

postman-collections/Janrain-Config-API.json.postman_collection

Lines changed: 506 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
```
2+
path,key,en-US,fr-FR
3+
fields.someField.label,991a5781-cbe1-4770-bbf1-395168a11d59,Register,Faire inscrire
4+
fields.anotherField.label,1ab1f15d-2555-49af-bd88-cf984ad40a13,Hello!,Bonjour!
5+
fields.oneMoreField.label,a8670648-f9f7-4c0b-92cd-e477fe67b617,Goodbye,Au revoir!
6+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```
2+
"validation": [
3+
{
4+
"rule": "required",
5+
"value": true,
6+
"message": "foo"
7+
},
8+
{
9+
"rule": "unique",
10+
"value": true,
11+
"message": "foo"
12+
}
13+
]
14+
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
```
2+
{
3+
"type": "text",
4+
"name": "myCustomTextField",
5+
"schemaAttribute": "displayName",
6+
"label": "bar",
7+
"tip": "foo",
8+
"socialProfileData": "profile.displayName",
9+
"placeholder": "foo",
10+
"validation": [
11+
{
12+
"rule": "required",
13+
"value": true,
14+
"message": "foo"
15+
},
16+
{
17+
"rule": "unique",
18+
"value": true,
19+
"message": "foo"
20+
}
21+
]
22+
}
23+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```
2+
{
3+
"type": "text",
4+
"name": "myCustomTextField",
5+
"schemaAttribute": "displayName",
6+
"label": "foo",
7+
"tip": "foo",
8+
"placeholder": "foo",
9+
"validation": [
10+
{
11+
"rule": "required",
12+
"value": true,
13+
"message": "foo"
14+
}
15+
]
16+
}
17+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```
2+
{
3+
"_self": "/v1/config/v86cchggr5cdvbfh7ydk8s63zz/flows/myCoolFlow/forms/signInForm",
4+
"fields": [
5+
{
6+
"_self": "/v1/config/v86cchggr5cdvbfh7ydk8s63zz/flows/myCoolFlow/fields/signInEmailAddress",
7+
"name": "signInEmailAddress"
8+
},
9+
{
10+
"_self": "/v1/config/v86cchggr5cdvbfh7ydk8s63zz/flows/myCoolFlow/fields/currentPassword",
11+
"name": "currentPassword"
12+
}
13+
]
14+
}
15+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```
2+
janrain.settings.language = 'fr-FR';
3+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
```
2+
"options": [
3+
{
4+
"disabled": true,
5+
"value": "",
6+
"label": "--"
7+
},
8+
{
9+
"value": "Not Specified",
10+
"label": "Not Specified"
11+
},
12+
{
13+
"value": "Not Specified",
14+
"label": "Not Specified"
15+
},
16+
{
17+
"value": "male",
18+
"label": "Male"
19+
},
20+
{
21+
"value": "female",
22+
"label": "Female"
23+
}
24+
]
25+
```
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
```
2+
{
3+
"_self": "/v1/config/v86cchggr5cdvbfh7ydk8s63zz/flows/myCoolFlow/forms/sampleForm",
4+
"fields": [
5+
{
6+
"name": "gender"
7+
},
8+
{
9+
"_self": "/v1/config/v86cchggr5cdvbfh7ydk8s63zz/flows/myCoolFlow/fields/firstName",
10+
"name": "firstName"
11+
}
12+
]
13+
}
14+
```

0 commit comments

Comments
 (0)