Created
March 14, 2020 08:25
-
-
Save grigor-aramyan/01d4d4702e3e2cbd58cfde59b16cc589 to your computer and use it in GitHub Desktop.
Models json for accounts registration/login (generaitor)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// registration | |
{ | |
"user": { | |
"email": "brig9@example.com", | |
"password": "12345678", | |
"password_confirmation": "12345678", | |
"accountable_type": "Organization", | |
"organization": { | |
"name": "Rostelecom", | |
"logo_uri": "some logo uri", | |
"description": "it's my company description" | |
} | |
} | |
} | |
{ | |
"user": { | |
"email": "brig8@example.com", | |
"password": "12345678", | |
"password_confirmation": "12345678", | |
"accountable_type": "IdeaGeneraitor", | |
"idea_generaitor": { | |
"full_name": "Mary Nersesyan", | |
"avatar_uri": "some avatar uri", | |
"description": "it's my short bio)" | |
} | |
} | |
} | |
// login | |
{ | |
"user": { | |
"email": "brig8@example.com", | |
"password": "12345678" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment