Browse Source

Fix: right header for authentication

febbweiss 10 years ago
parent
commit
c3d906cc38
6 changed files with 83 additions and 101 deletions
  1. 21 35
      app/routes/accounts.js
  2. 6 10
      app/routes/users.js
  3. 27 27
      public/api_data.js
  4. 27 27
      public/api_data.json
  5. 1 1
      public/api_project.js
  6. 1 1
      public/api_project.json

+ 21 - 35
app/routes/accounts.js

@@ -18,11 +18,9 @@ module.exports = function(app) {
          * 
          * @apiHeader {String} Content-Type application/json
          * 
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * @apiError (401) {json} AuthenticationFailed The user can't be found.
          * @apiErrorExample AuthenticationFailed:
          *     HTTP/1.1 401 Not Found
@@ -84,11 +82,9 @@ module.exports = function(app) {
          * 
          * @apiParam {String} account_id The account to delete
          * 
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * @apiError (401) {json} AuthenticationFailed The user can't be found.
          * @apiErrorExample AuthenticationFailed:
          *     HTTP/1.1 401 Not Found
@@ -119,11 +115,9 @@ module.exports = function(app) {
          * 
          * @apiHeader {String} Content-Type application/json
          * 
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * @apiError (401) {json} AuthenticationFailed The user can't be found.
          * @apiErrorExample AuthenticationFailed:
          *     HTTP/1.1 401 Not Found
@@ -188,11 +182,9 @@ module.exports = function(app) {
          * 
          * @apiHeader {String} Content-Type application/json
          * 
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * @apiError (401) {json} AuthenticationFailed The user can't be found.
          * @apiErrorExample AuthenticationFailed:
          *     HTTP/1.1 401 Not Found
@@ -271,11 +263,9 @@ module.exports = function(app) {
          * 
          * @apiHeader {String} Content-Type application/json
          * 
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * @apiError (401) {json} AuthenticationFailed The user can't be found.
          * @apiErrorExample AuthenticationFailed:
          *     HTTP/1.1 401 Not Found
@@ -349,11 +339,9 @@ module.exports = function(app) {
          * 
          * @apiHeader {String} Content-Type application/json
          * 
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * @apiError (401) {json} AuthenticationFailed The user can't be found.
          * @apiErrorExample AuthenticationFailed:
          *     HTTP/1.1 401 Not Found
@@ -418,11 +406,9 @@ module.exports = function(app) {
          * @apiParam {String} account_id The owner account
          * @apiParam {String} entry_id The entry to delete
          * 
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * @apiError (401) {json} AuthenticationFailed The user can't be found.
          * @apiErrorExample AuthenticationFailed:
          *     HTTP/1.1 401 Not Found

+ 6 - 10
app/routes/users.js

@@ -45,11 +45,9 @@ module.exports = function(app) {
          * @apiName Logout
          * @apiGroup Users
          *
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          * 
          * @apiSuccessExample Success-Response:
          *     HTTP/1.1 200 OK
@@ -118,11 +116,9 @@ module.exports = function(app) {
          * @apiGroup Users
          *
          * @apiHeader {String} Content-Type application/json
-         * @apiHeader {String} Authentication The valid JWT token provided by the {post} /users/login resource
-         * @apiHeaderExample {string} Authentication header example:
-         *     { 
-         *      "Authentication": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
-         *      }
+         * @apiHeader {String} Authorization The valid JWT token provided by the {post} /users/login resource
+         * @apiHeaderExample {string} Authorization header example:
+         *      "Authorization": "JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ" 
          *
          * @apiSuccess (204) -
          * @apiSuccessExample Success-Response:

+ 27 - 27
public/api_data.js

@@ -47,15 +47,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -144,15 +144,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -247,15 +247,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -372,15 +372,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -539,15 +539,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -671,15 +671,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -835,15 +835,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -1056,15 +1056,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -1221,15 +1221,15 @@ define({ "api": [
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]

+ 27 - 27
public/api_data.json

@@ -47,15 +47,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -144,15 +144,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -247,15 +247,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -372,15 +372,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -539,15 +539,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -671,15 +671,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -835,15 +835,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -1056,15 +1056,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]
@@ -1221,15 +1221,15 @@
             "group": "Header",
             "type": "String",
             "optional": false,
-            "field": "Authentication",
+            "field": "Authorization",
             "description": "<p>The valid JWT token provided by the {post} /users/login resource</p> "
           }
         ]
       },
       "examples": [
         {
-          "title": "Authentication header example:",
-          "content": "{ \n \"Authentication\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\" \n }",
+          "title": "Authorization header example:",
+          "content": "\"Authorization\": \"JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTVlNmU0ZTAwNTIzMGY0OTI3MWM3MDc4IiwiaWF0IjoxNDQxMTk1MjMyfQ.eWh9nuXVVSVDKKCmTMDoc9FBU55-KgkiOJH1hrdQRTQ\"",
           "type": "string"
         }
       ]

+ 1 - 1
public/api_project.js

@@ -8,7 +8,7 @@ define({
   "apidoc": "0.2.0",
   "generator": {
     "name": "apidoc",
-    "time": "2015-09-03T10:40:18.728Z",
+    "time": "2015-09-03T11:08:47.201Z",
     "url": "http://apidocjs.com",
     "version": "0.13.1"
   }

+ 1 - 1
public/api_project.json

@@ -8,7 +8,7 @@
   "apidoc": "0.2.0",
   "generator": {
     "name": "apidoc",
-    "time": "2015-09-03T10:40:18.728Z",
+    "time": "2015-09-03T11:08:47.201Z",
     "url": "http://apidocjs.com",
     "version": "0.13.1"
   }