-
-
Save bradtaniguchi/169890df5a69cc3a21a75dbf62513f68 to your computer and use it in GitHub Desktop.
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
Current Body: | |
{ | |
"userId" : "abc545646545646546545" | |
} | |
Option I - Proposal: | |
[ | |
{ | |
"userId" : "abc545646545646546545" | |
}, | |
{ | |
"userId" : "abc545646545646546545" | |
}, | |
{ | |
"userId" : "abc545646545646546545" | |
} | |
] | |
Option II - More simple solution (I Guess) | |
{ | |
users: 'abc545646545646546545, abc54564654564648966, kkj123132132132121' | |
} | |
Option III - Grouped by role | |
{ | |
message: 'message to send in the email', | |
roles: [ | |
{ | |
roleId: 'abc545646545646546545', | |
users: [ | |
abc545646545646546545, | |
abc54564654564648966, | |
kkj123132132132121 | |
] | |
}, | |
{ | |
roleId: 'abc545646545646546545', | |
users: [ | |
abc545646545646546545, | |
abc54564654564648966, | |
kkj123132132132121 | |
] | |
} | |
] | |
} | |
Option IV - Grouped by role (key: value version) | |
This has just as as much information, but is smaller and harder to iterate over. | |
{ | |
message: 'message to send in the email', | |
roles: { | |
'role123457890': [ | |
abc545646545646546545, | |
abc54564654564648966, | |
kkj123132132132121 | |
], | |
'role123457891': [ | |
abc545646545646546545, | |
abc54564654564648966, | |
kkj123132132132121 | |
] | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment