develop
sundowndev 2018-11-16 12:28:58 +01:00
parent 9d8c517b82
commit e9a2da4bd8
4 changed files with 128 additions and 14 deletions

View File

@ -12,8 +12,8 @@ define({ "api": [
"group": "Parameter", "group": "Parameter",
"type": "String", "type": "String",
"optional": false, "optional": false,
"field": "username", "field": "email",
"description": "<p>username of the user.</p>" "description": "<p>email of the user.</p>"
}, },
{ {
"group": "Parameter", "group": "Parameter",
@ -69,8 +69,8 @@ define({ "api": [
"group": "Parameter", "group": "Parameter",
"type": "String", "type": "String",
"optional": false, "optional": false,
"field": "username", "field": "email",
"description": "<p>username of the user.</p>" "description": "<p>email of the user.</p>"
}, },
{ {
"group": "Parameter", "group": "Parameter",
@ -99,6 +99,36 @@ define({ "api": [
"filename": "app/routes/auth/index.js", "filename": "app/routes/auth/index.js",
"groupTitle": "Auth" "groupTitle": "Auth"
}, },
{
"type": "post",
"url": "/auth/reset-password",
"title": "Reset password",
"name": "ResetPass",
"group": "Auth",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "email",
"description": "<p>email of the user.</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "password",
"description": "<p>password of the user.</p>"
}
]
}
},
"version": "0.0.0",
"filename": "app/routes/auth/index.js",
"groupTitle": "Auth"
},
{ {
"type": "post", "type": "post",
"url": "/note", "url": "/note",
@ -157,7 +187,7 @@ define({ "api": [
"examples": [ "examples": [
{ {
"title": "Error-Response:", "title": "Error-Response:",
"content": "HTTP/1.1 403 Not Found\n{\n \"success\": false,\n \"message\": \"Access forbidden.\",\n \"errors\": []\n}", "content": "HTTP/1.1 403 Forbidden\n{\n \"success\": false,\n \"message\": \"Access forbidden.\",\n \"errors\": []\n}",
"type": "json" "type": "json"
} }
] ]
@ -278,7 +308,7 @@ define({ "api": [
{ {
"type": "get", "type": "get",
"url": "/user/me", "url": "/user/me",
"title": "Get user information", "title": "Get account information",
"name": "GetUser", "name": "GetUser",
"group": "User", "group": "User",
"success": { "success": {
@ -318,6 +348,33 @@ define({ "api": [
"title": "Update account information", "title": "Update account information",
"name": "UpdateUser", "name": "UpdateUser",
"group": "User", "group": "User",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "Firstname",
"description": "<p>new firstname.</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "Lastname",
"description": "<p>new lastname.</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "Email",
"description": "<p>new email address.</p>"
}
]
}
},
"success": { "success": {
"fields": { "fields": {
"Success 200": [ "Success 200": [

View File

@ -12,8 +12,8 @@
"group": "Parameter", "group": "Parameter",
"type": "String", "type": "String",
"optional": false, "optional": false,
"field": "username", "field": "email",
"description": "<p>username of the user.</p>" "description": "<p>email of the user.</p>"
}, },
{ {
"group": "Parameter", "group": "Parameter",
@ -69,8 +69,8 @@
"group": "Parameter", "group": "Parameter",
"type": "String", "type": "String",
"optional": false, "optional": false,
"field": "username", "field": "email",
"description": "<p>username of the user.</p>" "description": "<p>email of the user.</p>"
}, },
{ {
"group": "Parameter", "group": "Parameter",
@ -99,6 +99,36 @@
"filename": "app/routes/auth/index.js", "filename": "app/routes/auth/index.js",
"groupTitle": "Auth" "groupTitle": "Auth"
}, },
{
"type": "post",
"url": "/auth/reset-password",
"title": "Reset password",
"name": "ResetPass",
"group": "Auth",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "email",
"description": "<p>email of the user.</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "password",
"description": "<p>password of the user.</p>"
}
]
}
},
"version": "0.0.0",
"filename": "app/routes/auth/index.js",
"groupTitle": "Auth"
},
{ {
"type": "post", "type": "post",
"url": "/note", "url": "/note",
@ -157,7 +187,7 @@
"examples": [ "examples": [
{ {
"title": "Error-Response:", "title": "Error-Response:",
"content": "HTTP/1.1 403 Not Found\n{\n \"success\": false,\n \"message\": \"Access forbidden.\",\n \"errors\": []\n}", "content": "HTTP/1.1 403 Forbidden\n{\n \"success\": false,\n \"message\": \"Access forbidden.\",\n \"errors\": []\n}",
"type": "json" "type": "json"
} }
] ]
@ -278,7 +308,7 @@
{ {
"type": "get", "type": "get",
"url": "/user/me", "url": "/user/me",
"title": "Get user information", "title": "Get account information",
"name": "GetUser", "name": "GetUser",
"group": "User", "group": "User",
"success": { "success": {
@ -318,6 +348,33 @@
"title": "Update account information", "title": "Update account information",
"name": "UpdateUser", "name": "UpdateUser",
"group": "User", "group": "User",
"parameter": {
"fields": {
"Parameter": [
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "Firstname",
"description": "<p>new firstname.</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "Lastname",
"description": "<p>new lastname.</p>"
},
{
"group": "Parameter",
"type": "String",
"optional": false,
"field": "Email",
"description": "<p>new email address.</p>"
}
]
}
},
"success": { "success": {
"fields": { "fields": {
"Success 200": [ "Success 200": [

View File

@ -8,7 +8,7 @@ define({
"apidoc": "0.3.0", "apidoc": "0.3.0",
"generator": { "generator": {
"name": "apidoc", "name": "apidoc",
"time": "2018-11-15T18:00:50.902Z", "time": "2018-11-16T10:11:39.561Z",
"url": "http://apidocjs.com", "url": "http://apidocjs.com",
"version": "0.17.7" "version": "0.17.7"
} }

View File

@ -8,7 +8,7 @@
"apidoc": "0.3.0", "apidoc": "0.3.0",
"generator": { "generator": {
"name": "apidoc", "name": "apidoc",
"time": "2018-11-15T18:00:50.902Z", "time": "2018-11-16T10:11:39.561Z",
"url": "http://apidocjs.com", "url": "http://apidocjs.com",
"version": "0.17.7" "version": "0.17.7"
} }