@@ -257,63 +257,6 @@ define({
257257 "url" : "https://api.mchacks.ca/api/account/invite"
258258 } ]
259259 } ,
260- {
261- "type" : "post" ,
262- "url" : "/account/invite" ,
263- "title" : "invites a user to create an account with the specified accountType" ,
264- "name" : "inviteAccount" ,
265- "group" : "Account" ,
266- "version" : "0.0.8" ,
267- "description" : "<p>sends link with token to be used with the account/create route</p>" ,
268- "parameter" : {
269- "fields" : {
270- "body" : [ {
271- "group" : "body" ,
272- "type" : "String" ,
273- "optional" : true ,
274- "field" : "email" ,
275- "description" : "<p>email of the account to be created and where to send the link</p>"
276- } ,
277- {
278- "group" : "body" ,
279- "type" : "String" ,
280- "optional" : true ,
281- "field" : "accountType" ,
282- "description" : "<p>the type of the account which the user can create, for sponsor this should specify tier as well</p>"
283- }
284- ]
285- }
286- } ,
287- "success" : {
288- "fields" : {
289- "Success 200" : [ {
290- "group" : "Success 200" ,
291- "type" : "string" ,
292- "optional" : false ,
293- "field" : "message" ,
294- "description" : "<p>Success message</p>"
295- } ,
296- {
297- "group" : "Success 200" ,
298- "type" : "object" ,
299- "optional" : false ,
300- "field" : "data" ,
301- "description" : "<p>Account object</p>"
302- }
303- ]
304- } ,
305- "examples" : [ {
306- "title" : "Success-Response: " ,
307- "content" : "{\n \"message\": \"Successfully invited user \", \n \"data\": {}\n }" ,
308- "type" : "object"
309- } ]
310- } ,
311- "filename" : "routes/api/account.js" ,
312- "groupTitle" : "Account" ,
313- "sampleRequest" : [ {
314- "url" : "https://mchacks.ca/api/account/invite"
315- } ]
316- } ,
317260 {
318261 "type" : "get" ,
319262 "url" : "/account/self" ,
@@ -1056,7 +999,7 @@ define({
1056999 "filename" : "routes/api/hacker.js" ,
10571000 "groupTitle" : "Hacker" ,
10581001 "sampleRequest" : [ {
1059- "url" : "https://mchacks.ca/api/hacker/checkin/:id"
1002+ "url" : "https://api. mchacks.ca/api/hacker/checkin/:id"
10601003 } ]
10611004 } ,
10621005 {
@@ -1473,7 +1416,7 @@ define({
14731416 "filename" : "routes/api/hacker.js" ,
14741417 "groupTitle" : "Hacker" ,
14751418 "sampleRequest" : [ {
1476- "url" : "https://mchacks.ca/api/hacker/confirmation/:id Allows confirmation of hacker attendence if they are accepted."
1419+ "url" : "https://api. mchacks.ca/api/hacker/confirmation/:id Allows confirmation of hacker attendence if they are accepted."
14771420 } ]
14781421 } ,
14791422 {
@@ -1586,6 +1529,67 @@ define({
15861529 "url" : "https://api.mchacks.ca/api/hacker/resume/:id"
15871530 } ]
15881531 } ,
1532+ {
1533+ "type" : "get" ,
1534+ "url" : "/hacker/self" ,
1535+ "title" : "get information about own hacker" ,
1536+ "name" : "self" ,
1537+ "group" : "Hacker" ,
1538+ "version" : "0.0.8" ,
1539+ "success" : {
1540+ "fields" : {
1541+ "Success 200" : [ {
1542+ "group" : "Success 200" ,
1543+ "type" : "string" ,
1544+ "optional" : false ,
1545+ "field" : "message" ,
1546+ "description" : "<p>Success message</p>"
1547+ } ,
1548+ {
1549+ "group" : "Success 200" ,
1550+ "type" : "object" ,
1551+ "optional" : false ,
1552+ "field" : "data" ,
1553+ "description" : "<p>Hacker object</p>"
1554+ }
1555+ ]
1556+ } ,
1557+ "examples" : [ {
1558+ "title" : "Success-Response: " ,
1559+ "content" : "{\n \"message\": \"Hacker found by logged in account id\", \n \"data\": {HackerObject}\n }" ,
1560+ "type" : "object"
1561+ } ]
1562+ } ,
1563+ "error" : {
1564+ "fields" : {
1565+ "Error 4xx" : [ {
1566+ "group" : "Error 4xx" ,
1567+ "type" : "string" ,
1568+ "optional" : false ,
1569+ "field" : "message" ,
1570+ "description" : "<p>Error message</p>"
1571+ } ,
1572+ {
1573+ "group" : "Error 4xx" ,
1574+ "type" : "object" ,
1575+ "optional" : false ,
1576+ "field" : "data" ,
1577+ "description" : "<p>empty</p>"
1578+ }
1579+ ]
1580+ } ,
1581+ "examples" : [ {
1582+ "title" : "Error-Response: " ,
1583+ "content" : "{\"message\": \"Hacker not found\", \"data\": {}}" ,
1584+ "type" : "object"
1585+ } ]
1586+ } ,
1587+ "filename" : "routes/api/hacker.js" ,
1588+ "groupTitle" : "Hacker" ,
1589+ "sampleRequest" : [ {
1590+ "url" : "https://api.mchacks.ca/api/hacker/self"
1591+ } ]
1592+ } ,
15891593 {
15901594 "type" : "get" ,
15911595 "url" : "/" ,
0 commit comments