pull/1/head
sundowndev 2018-11-15 19:28:51 +01:00
parent af843d5bf7
commit 7eb6a27665
4 changed files with 104 additions and 22 deletions

View File

@ -32,8 +32,8 @@ define({ "api": [
"group": "Success 200", "group": "Success 200",
"type": "string", "type": "string",
"optional": false, "optional": false,
"field": "jwt_token", "field": "access_token",
"description": "<p>JWT token.</p>" "description": "<p>Access token.</p>"
} }
] ]
} }
@ -105,15 +105,31 @@ define({ "api": [
"title": "Create note", "title": "Create note",
"name": "CreateNote", "name": "CreateNote",
"group": "Note", "group": "Note",
"header": {
"examples": [
{
"title": "Header-Example:",
"content": "{\n \"Authorization\": \"<Access_Token>\"\n}",
"type": "json"
}
]
},
"success": { "success": {
"fields": { "fields": {
"Success 200": [ "Success 200": [
{ {
"group": "Success 200", "group": "Success 200",
"type": "Object", "type": "string",
"optional": false, "optional": false,
"field": "Object", "field": "title",
"description": "<p>Created note.</p>" "description": "<p>Title of the note.</p>"
},
{
"group": "Success 200",
"type": "string",
"optional": false,
"field": "text",
"description": "<p>Text of the note.</p>"
} }
] ]
} }
@ -128,6 +144,24 @@ define({ "api": [
"title": "Delete note", "title": "Delete note",
"name": "DeleteNote", "name": "DeleteNote",
"group": "Note", "group": "Note",
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "HTTP/1.1 200 OK\n{\n \"success\": true,\n \"message\": \"Note successfully deleted.\"\n}",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Response:",
"content": "HTTP/1.1 403 Not Found\n{\n \"success\": false,\n \"message\": \"Access forbidden.\",\n \"errors\": []\n}",
"type": "json"
}
]
},
"parameter": { "parameter": {
"fields": { "fields": {
"Parameter": [ "Parameter": [
@ -212,10 +246,17 @@ define({ "api": [
"Success 200": [ "Success 200": [
{ {
"group": "Success 200", "group": "Success 200",
"type": "Object", "type": "string",
"optional": false, "optional": false,
"field": "Object", "field": "title",
"description": "<p>Updated note.</p>" "description": "<p>Title of the note.</p>"
},
{
"group": "Success 200",
"type": "string",
"optional": false,
"field": "text",
"description": "<p>Text of the note.</p>"
} }
] ]
} }
@ -261,8 +302,8 @@ define({ "api": [
"group": "Success 200", "group": "Success 200",
"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>"
} }
] ]
} }

View File

@ -32,8 +32,8 @@
"group": "Success 200", "group": "Success 200",
"type": "string", "type": "string",
"optional": false, "optional": false,
"field": "jwt_token", "field": "access_token",
"description": "<p>JWT token.</p>" "description": "<p>Access token.</p>"
} }
] ]
} }
@ -105,15 +105,31 @@
"title": "Create note", "title": "Create note",
"name": "CreateNote", "name": "CreateNote",
"group": "Note", "group": "Note",
"header": {
"examples": [
{
"title": "Header-Example:",
"content": "{\n \"Authorization\": \"<Access_Token>\"\n}",
"type": "json"
}
]
},
"success": { "success": {
"fields": { "fields": {
"Success 200": [ "Success 200": [
{ {
"group": "Success 200", "group": "Success 200",
"type": "Object", "type": "string",
"optional": false, "optional": false,
"field": "Object", "field": "title",
"description": "<p>Created note.</p>" "description": "<p>Title of the note.</p>"
},
{
"group": "Success 200",
"type": "string",
"optional": false,
"field": "text",
"description": "<p>Text of the note.</p>"
} }
] ]
} }
@ -128,6 +144,24 @@
"title": "Delete note", "title": "Delete note",
"name": "DeleteNote", "name": "DeleteNote",
"group": "Note", "group": "Note",
"success": {
"examples": [
{
"title": "Success-Response:",
"content": "HTTP/1.1 200 OK\n{\n \"success\": true,\n \"message\": \"Note successfully deleted.\"\n}",
"type": "json"
}
]
},
"error": {
"examples": [
{
"title": "Error-Response:",
"content": "HTTP/1.1 403 Not Found\n{\n \"success\": false,\n \"message\": \"Access forbidden.\",\n \"errors\": []\n}",
"type": "json"
}
]
},
"parameter": { "parameter": {
"fields": { "fields": {
"Parameter": [ "Parameter": [
@ -212,10 +246,17 @@
"Success 200": [ "Success 200": [
{ {
"group": "Success 200", "group": "Success 200",
"type": "Object", "type": "string",
"optional": false, "optional": false,
"field": "Object", "field": "title",
"description": "<p>Updated note.</p>" "description": "<p>Title of the note.</p>"
},
{
"group": "Success 200",
"type": "string",
"optional": false,
"field": "text",
"description": "<p>Text of the note.</p>"
} }
] ]
} }
@ -261,8 +302,8 @@
"group": "Success 200", "group": "Success 200",
"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>"
} }
] ]
} }

View File

@ -8,7 +8,7 @@ define({
"apidoc": "0.3.0", "apidoc": "0.3.0",
"generator": { "generator": {
"name": "apidoc", "name": "apidoc",
"time": "2018-11-14T16:18:06.827Z", "time": "2018-11-15T18:00:50.902Z",
"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-14T16:18:06.827Z", "time": "2018-11-15T18:00:50.902Z",
"url": "http://apidocjs.com", "url": "http://apidocjs.com",
"version": "0.17.7" "version": "0.17.7"
} }