returns registrations array containing owner's school
POST /api/v1/registration/validate
Parameters
| Name |
Description |
|
email
|
user email
|
|
name
|
user name
|
|
password
|
password, min 8 chars
|
|
password_confirmation
|
password again
|
|
school_name
|
name of the school
|
|
school_url
|
url of the new school, eg foo.usefedora.com
|
|
school_plan_id
|
ID of plan the person is signing up for
|
Request
Headers
Route
POST /api/v1/registration/validate
Body
{"email":"user-210@example.com","password":"password"}
cURL
curl "http://localhost:3000/api/v1/registration/validate" -d '{"email":"user-210@example.com","password":"password"}' -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Host: example.org"
Response
Headers
Status
200 OK
Body
{
"registrations": [
{
"school_name": "School 104",
"school_id": 105,
"authenticated_url": "http://sso.worksonmy.computer:3001/secure/105/users/sessions/remote_sign_in?redirect=admin&remote_sign_in_token=c88c651570bbaff4508ef6bde1264591&user_id=212",
"zendesk_url": "https://teachable1550601740.zendesk.com/access/jwt?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1NzI1NTkyMDYsImp0aSI6IjE1NzI1NTkyMDYvMTFjMzYwZGY5ODA4MWI4OTlkMGM5MDdmOWI3MWVjYjBkNGNmIiwibmFtZSI6IlVzZXIgTmFtZSIsImVtYWlsIjoidXNlci0yMTBAZXhhbXBsZS5jb20ifQ.LEFTwRPxENSspRqdSL71Ud1r5SpDtthLXutToXEeLtM",
"id": 212,
"last_four": null,
"card_type": null,
"school_plan_id": 107,
"primary_owner": false
}
]
}