@@ -22,6 +22,13 @@ define({
2222 "field" : "lastName" ,
2323 "description" : "<p>Last name of the account creator.</p>"
2424 } ,
25+ {
26+ "group" : "body" ,
27+ "type" : "String" ,
28+ "optional" : false ,
29+ "field" : "pronoun" ,
30+ "description" : "<p>the pronoun of the account creator.</p>"
31+ } ,
2532 {
2633 "group" : "body" ,
2734 "type" : "String" ,
@@ -47,8 +54,22 @@ define({
4754 "group" : "body" ,
4855 "type" : "String" ,
4956 "optional" : false ,
50- "field" : "passowrd " ,
57+ "field" : "password " ,
5158 "description" : "<p>The password of the account.</p>"
59+ } ,
60+ {
61+ "group" : "body" ,
62+ "type" : "String" ,
63+ "optional" : false ,
64+ "field" : "birthDate" ,
65+ "description" : "<p>a Date parsable string.</p>"
66+ } ,
67+ {
68+ "group" : "body" ,
69+ "type" : "Number" ,
70+ "optional" : false ,
71+ "field" : "phoneNumber" ,
72+ "description" : "<p>the user's phone number, represented as a string.</p>"
5273 }
5374 ]
5475 }
@@ -263,6 +284,13 @@ define({
263284 "field" : "lastName" ,
264285 "description" : "<p>Last name of the account creator.</p>"
265286 } ,
287+ {
288+ "group" : "body" ,
289+ "type" : "String" ,
290+ "optional" : true ,
291+ "field" : "pronoun" ,
292+ "description" : "<p>the pronoun of the account creator.</p>"
293+ } ,
266294 {
267295 "group" : "body" ,
268296 "type" : "String" ,
@@ -290,6 +318,20 @@ define({
290318 "optional" : true ,
291319 "field" : "passowrd" ,
292320 "description" : "<p>The password of the account.</p>"
321+ } ,
322+ {
323+ "group" : "body" ,
324+ "type" : "String" ,
325+ "optional" : true ,
326+ "field" : "birthDate" ,
327+ "description" : "<p>a Date parsable string.</p>"
328+ } ,
329+ {
330+ "group" : "body" ,
331+ "type" : "Number" ,
332+ "optional" : true ,
333+ "field" : "phoneNumber" ,
334+ "description" : "<p>the user's phone number, represented as a string.</p>"
293335 }
294336 ]
295337 }
@@ -476,6 +518,44 @@ define({
476518 "url" : "https://mchacks.ca/api/auth/password/forgot"
477519 } ]
478520 } ,
521+ {
522+ "type" : "get" ,
523+ "url" : "/auth/roles" ,
524+ "title" : "get roles" ,
525+ "name" : "getRoles" ,
526+ "description" : "<p>get all roles that exist in the database</p>" ,
527+ "group" : "Authentication" ,
528+ "version" : "0.0.8" ,
529+ "success" : {
530+ "fields" : {
531+ "Success 200" : [ {
532+ "group" : "Success 200" ,
533+ "type" : "string" ,
534+ "optional" : false ,
535+ "field" : "message" ,
536+ "description" : "<p>Success message</p>"
537+ } ,
538+ {
539+ "group" : "Success 200" ,
540+ "type" : "object" ,
541+ "optional" : false ,
542+ "field" : "data" ,
543+ "description" : "<p>empty</p>"
544+ }
545+ ]
546+ } ,
547+ "examples" : [ {
548+ "title" : "Success-Response:" ,
549+ "content" : "{\"message\": \"Sucessfully retrieved all roles\", \"data\":\n[{name: \"GodStaff\", routes: Array(27), id: \"5bee20ef3ca9dd4754382880\"},\n {name: \"Hacker\", routes: Array(10), id: \"5bee20ef3ca9dd4754382881\"},\n {name: \"Volunteer\", routes: Array(4), id: \"5bee20ef3ca9dd4754382882\"}]" ,
550+ "type" : "json"
551+ } ]
552+ } ,
553+ "filename" : "routes/api/auth.js" ,
554+ "groupTitle" : "Authentication" ,
555+ "sampleRequest" : [ {
556+ "url" : "https://mchacks.ca/api/auth/roles"
557+ } ]
558+ } ,
479559 {
480560 "type" : "post" ,
481561 "url" : "/auth/login" ,
@@ -847,6 +927,34 @@ define({
847927 "field" : "needsBus" ,
848928 "description" : "<p>Whether the hacker requires a bus for transportation</p>"
849929 } ,
930+ {
931+ "group" : "body" ,
932+ "type" : "String[]" ,
933+ "optional" : false ,
934+ "field" : "ethnicity" ,
935+ "description" : "<p>the ethnicities of the hacker</p>"
936+ } ,
937+ {
938+ "group" : "body" ,
939+ "type" : "String" ,
940+ "optional" : false ,
941+ "field" : "major" ,
942+ "description" : "<p>the major of the hacker</p>"
943+ } ,
944+ {
945+ "group" : "body" ,
946+ "type" : "Number" ,
947+ "optional" : false ,
948+ "field" : "graduationYear" ,
949+ "description" : "<p>the graduation year of the hacker</p>"
950+ } ,
951+ {
952+ "group" : "body" ,
953+ "type" : "Boolean" ,
954+ "optional" : false ,
955+ "field" : "codeOfConduct" ,
956+ "description" : "<p>acceptance of the code of conduct</p>"
957+ } ,
850958 {
851959 "group" : "body" ,
852960 "type" : "Json" ,
0 commit comments