1806 lines
46 KiB
JavaScript
1806 lines
46 KiB
JavaScript
define({ "api": [
|
|
{
|
|
"type": "post",
|
|
"url": "/appointments",
|
|
"title": "Create appointment",
|
|
"name": "CreateAppointment",
|
|
"group": "Appointment",
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "No",
|
|
"description": "<p>Appointment's No.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Patient-Name",
|
|
"description": "<p>Appointment's Patient-Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Docter-Name",
|
|
"description": "<p>Appointment's Docter-Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Date",
|
|
"description": "<p>Appointment's Date.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Time",
|
|
"description": "<p>Appointment's Time.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Departent",
|
|
"description": "<p>Appointment's Departent.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "appointment",
|
|
"description": "<p>Appointment's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Appointment not found.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/appointment/index.js",
|
|
"groupTitle": "Appointment"
|
|
},
|
|
{
|
|
"type": "delete",
|
|
"url": "/appointments/:id",
|
|
"title": "Delete appointment",
|
|
"name": "DeleteAppointment",
|
|
"group": "Appointment",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 204": [
|
|
{
|
|
"group": "Success 204",
|
|
"optional": false,
|
|
"field": "204",
|
|
"description": "<p>No Content.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Appointment not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/appointment/index.js",
|
|
"groupTitle": "Appointment"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/appointments/:id",
|
|
"title": "Retrieve appointment",
|
|
"name": "RetrieveAppointment",
|
|
"group": "Appointment",
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "appointment",
|
|
"description": "<p>Appointment's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Appointment not found.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/appointment/index.js",
|
|
"groupTitle": "Appointment"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/appointments",
|
|
"title": "Retrieve appointments",
|
|
"name": "RetrieveAppointments",
|
|
"group": "Appointment",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "q",
|
|
"description": "<p>Query to search.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..30",
|
|
"optional": true,
|
|
"field": "page",
|
|
"defaultValue": "1",
|
|
"description": "<p>Page number.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..100",
|
|
"optional": true,
|
|
"field": "limit",
|
|
"defaultValue": "30",
|
|
"description": "<p>Amount of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "sort",
|
|
"defaultValue": "-createdAt",
|
|
"description": "<p>Order of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "fields",
|
|
"description": "<p>Fields to be returned.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Number",
|
|
"optional": false,
|
|
"field": "count",
|
|
"description": "<p>Total amount of appointments.</p>"
|
|
},
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object[]",
|
|
"optional": false,
|
|
"field": "rows",
|
|
"description": "<p>List of appointments.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/appointment/index.js",
|
|
"groupTitle": "Appointment"
|
|
},
|
|
{
|
|
"type": "put",
|
|
"url": "/appointments/:id",
|
|
"title": "Update appointment",
|
|
"name": "UpdateAppointment",
|
|
"group": "Appointment",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "No",
|
|
"description": "<p>Appointment's No.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Patient-Name",
|
|
"description": "<p>Appointment's Patient-Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Docter-Name",
|
|
"description": "<p>Appointment's Docter-Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Date",
|
|
"description": "<p>Appointment's Date.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Time",
|
|
"description": "<p>Appointment's Time.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Departent",
|
|
"description": "<p>Appointment's Departent.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "appointment",
|
|
"description": "<p>Appointment's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Appointment not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/appointment/index.js",
|
|
"groupTitle": "Appointment"
|
|
},
|
|
{
|
|
"type": "post",
|
|
"url": "/auth",
|
|
"title": "Authenticate",
|
|
"name": "Authenticate",
|
|
"group": "Auth",
|
|
"permission": [
|
|
{
|
|
"name": "master",
|
|
"title": "Master access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"header": {
|
|
"fields": {
|
|
"Header": [
|
|
{
|
|
"group": "Header",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "Authorization",
|
|
"description": "<p>Basic authorization with email and password.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>Master access_token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 201": [
|
|
{
|
|
"group": "Success 201",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "token",
|
|
"description": "<p>User <code>access_token</code> to be passed to other requests.</p>"
|
|
},
|
|
{
|
|
"group": "Success 201",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "user",
|
|
"description": "<p>Current user's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>Master access only or invalid credentials.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/auth/index.js",
|
|
"groupTitle": "Auth"
|
|
},
|
|
{
|
|
"type": "post",
|
|
"url": "/departments",
|
|
"title": "Create department",
|
|
"name": "CreateDepartment",
|
|
"group": "Department",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Id",
|
|
"description": "<p>Department's Id.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Name",
|
|
"description": "<p>Department's Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Nos.",
|
|
"description": "<p>of Doctor Department's Nos. of Doctor.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "department",
|
|
"description": "<p>Department's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Department not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/department/index.js",
|
|
"groupTitle": "Department"
|
|
},
|
|
{
|
|
"type": "delete",
|
|
"url": "/departments/:id",
|
|
"title": "Delete department",
|
|
"name": "DeleteDepartment",
|
|
"group": "Department",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 204": [
|
|
{
|
|
"group": "Success 204",
|
|
"optional": false,
|
|
"field": "204",
|
|
"description": "<p>No Content.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Department not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/department/index.js",
|
|
"groupTitle": "Department"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/departments/:id",
|
|
"title": "Retrieve department",
|
|
"name": "RetrieveDepartment",
|
|
"group": "Department",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "department",
|
|
"description": "<p>Department's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Department not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/department/index.js",
|
|
"groupTitle": "Department"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/departments",
|
|
"title": "Retrieve departments",
|
|
"name": "RetrieveDepartments",
|
|
"group": "Department",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "q",
|
|
"description": "<p>Query to search.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..30",
|
|
"optional": true,
|
|
"field": "page",
|
|
"defaultValue": "1",
|
|
"description": "<p>Page number.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..100",
|
|
"optional": true,
|
|
"field": "limit",
|
|
"defaultValue": "30",
|
|
"description": "<p>Amount of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "sort",
|
|
"defaultValue": "-createdAt",
|
|
"description": "<p>Order of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "fields",
|
|
"description": "<p>Fields to be returned.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Number",
|
|
"optional": false,
|
|
"field": "count",
|
|
"description": "<p>Total amount of departments.</p>"
|
|
},
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object[]",
|
|
"optional": false,
|
|
"field": "rows",
|
|
"description": "<p>List of departments.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/department/index.js",
|
|
"groupTitle": "Department"
|
|
},
|
|
{
|
|
"type": "put",
|
|
"url": "/departments/:id",
|
|
"title": "Update department",
|
|
"name": "UpdateDepartment",
|
|
"group": "Department",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Id",
|
|
"description": "<p>Department's Id.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Name",
|
|
"description": "<p>Department's Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Nos.",
|
|
"description": "<p>of Doctor Department's Nos. of Doctor.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "department",
|
|
"description": "<p>Department's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Department not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/department/index.js",
|
|
"groupTitle": "Department"
|
|
},
|
|
{
|
|
"type": "post",
|
|
"url": "/doctors",
|
|
"title": "Create doctor",
|
|
"name": "CreateDoctor",
|
|
"group": "Doctor",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Id",
|
|
"description": "<p>Doctor's Id.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Name",
|
|
"description": "<p>Doctor's Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Department",
|
|
"description": "<p>Doctor's Department.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "doctor",
|
|
"description": "<p>Doctor's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Doctor not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/doctor/index.js",
|
|
"groupTitle": "Doctor"
|
|
},
|
|
{
|
|
"type": "delete",
|
|
"url": "/doctors/:id",
|
|
"title": "Delete doctor",
|
|
"name": "DeleteDoctor",
|
|
"group": "Doctor",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 204": [
|
|
{
|
|
"group": "Success 204",
|
|
"optional": false,
|
|
"field": "204",
|
|
"description": "<p>No Content.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Doctor not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/doctor/index.js",
|
|
"groupTitle": "Doctor"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/doctors/:id",
|
|
"title": "Retrieve doctor",
|
|
"name": "RetrieveDoctor",
|
|
"group": "Doctor",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "doctor",
|
|
"description": "<p>Doctor's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Doctor not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/doctor/index.js",
|
|
"groupTitle": "Doctor"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/doctors",
|
|
"title": "Retrieve doctors",
|
|
"name": "RetrieveDoctors",
|
|
"group": "Doctor",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "q",
|
|
"description": "<p>Query to search.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..30",
|
|
"optional": true,
|
|
"field": "page",
|
|
"defaultValue": "1",
|
|
"description": "<p>Page number.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..100",
|
|
"optional": true,
|
|
"field": "limit",
|
|
"defaultValue": "30",
|
|
"description": "<p>Amount of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "sort",
|
|
"defaultValue": "-createdAt",
|
|
"description": "<p>Order of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "fields",
|
|
"description": "<p>Fields to be returned.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Number",
|
|
"optional": false,
|
|
"field": "count",
|
|
"description": "<p>Total amount of doctors.</p>"
|
|
},
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object[]",
|
|
"optional": false,
|
|
"field": "rows",
|
|
"description": "<p>List of doctors.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/doctor/index.js",
|
|
"groupTitle": "Doctor"
|
|
},
|
|
{
|
|
"type": "put",
|
|
"url": "/doctors/:id",
|
|
"title": "Update doctor",
|
|
"name": "UpdateDoctor",
|
|
"group": "Doctor",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>admin access token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Id",
|
|
"description": "<p>Doctor's Id.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Name",
|
|
"description": "<p>Doctor's Name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"optional": false,
|
|
"field": "Department",
|
|
"description": "<p>Doctor's Department.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "doctor",
|
|
"description": "<p>Doctor's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>Doctor not found.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/doctor/index.js",
|
|
"groupTitle": "Doctor"
|
|
},
|
|
{
|
|
"type": "post",
|
|
"url": "/users",
|
|
"title": "Create user",
|
|
"name": "CreateUser",
|
|
"group": "User",
|
|
"permission": [
|
|
{
|
|
"name": "master",
|
|
"title": "Master access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>Master access_token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "email",
|
|
"description": "<p>User's email.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"size": "6..",
|
|
"optional": false,
|
|
"field": "password",
|
|
"description": "<p>User's password.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "name",
|
|
"description": "<p>User's name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "picture",
|
|
"description": "<p>User's picture.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"allowedValues": [
|
|
"user",
|
|
"admin"
|
|
],
|
|
"optional": true,
|
|
"field": "role",
|
|
"defaultValue": "user",
|
|
"description": "<p>User's role.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Sucess 201": [
|
|
{
|
|
"group": "Sucess 201",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "user",
|
|
"description": "<p>User's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>Master access only.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "409",
|
|
"description": "<p>Email already registered.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/user/index.js",
|
|
"groupTitle": "User"
|
|
},
|
|
{
|
|
"type": "delete",
|
|
"url": "/users/:id",
|
|
"title": "Delete user",
|
|
"name": "DeleteUser",
|
|
"group": "User",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>User access_token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 204": [
|
|
{
|
|
"group": "Success 204",
|
|
"optional": false,
|
|
"field": "204",
|
|
"description": "<p>No Content.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>Admin access only.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>User not found.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/user/index.js",
|
|
"groupTitle": "User"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/users/me",
|
|
"title": "Retrieve current user",
|
|
"name": "RetrieveCurrentUser",
|
|
"group": "User",
|
|
"permission": [
|
|
{
|
|
"name": "user",
|
|
"title": "User access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>User access_token.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "user",
|
|
"description": "<p>User's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/user/index.js",
|
|
"groupTitle": "User"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/users/:id",
|
|
"title": "Retrieve user",
|
|
"name": "RetrieveUser",
|
|
"group": "User",
|
|
"permission": [
|
|
{
|
|
"name": "public"
|
|
}
|
|
],
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "user",
|
|
"description": "<p>User's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>User not found.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/user/index.js",
|
|
"groupTitle": "User"
|
|
},
|
|
{
|
|
"type": "get",
|
|
"url": "/users",
|
|
"title": "Retrieve users",
|
|
"name": "RetrieveUsers",
|
|
"group": "User",
|
|
"permission": [
|
|
{
|
|
"name": "admin",
|
|
"title": "Admin access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>User access_token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "q",
|
|
"description": "<p>Query to search.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..30",
|
|
"optional": true,
|
|
"field": "page",
|
|
"defaultValue": "1",
|
|
"description": "<p>Page number.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "Number",
|
|
"size": "1..100",
|
|
"optional": true,
|
|
"field": "limit",
|
|
"defaultValue": "30",
|
|
"description": "<p>Amount of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "sort",
|
|
"defaultValue": "-createdAt",
|
|
"description": "<p>Order of returned items.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String[]",
|
|
"optional": true,
|
|
"field": "fields",
|
|
"description": "<p>Fields to be returned.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object[]",
|
|
"optional": false,
|
|
"field": "users",
|
|
"description": "<p>List of users.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>Admin access only.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/user/index.js",
|
|
"groupTitle": "User"
|
|
},
|
|
{
|
|
"type": "put",
|
|
"url": "/users/:id/password",
|
|
"title": "Update password",
|
|
"name": "UpdatePassword",
|
|
"group": "User",
|
|
"header": {
|
|
"fields": {
|
|
"Header": [
|
|
{
|
|
"group": "Header",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "Authorization",
|
|
"description": "<p>Basic authorization with email and password.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"size": "6..",
|
|
"optional": false,
|
|
"field": "password",
|
|
"description": "<p>User's new password.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 201": [
|
|
{
|
|
"group": "Success 201",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "user",
|
|
"description": "<p>User's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>Current user access only.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>User not found.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/user/index.js",
|
|
"groupTitle": "User"
|
|
},
|
|
{
|
|
"type": "put",
|
|
"url": "/users/:id",
|
|
"title": "Update user",
|
|
"name": "UpdateUser",
|
|
"group": "User",
|
|
"permission": [
|
|
{
|
|
"name": "user",
|
|
"title": "User access only",
|
|
"description": "<p>You must pass <code>access_token</code> parameter or a Bearer Token authorization header to access this endpoint.</p>"
|
|
}
|
|
],
|
|
"parameter": {
|
|
"fields": {
|
|
"Parameter": [
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": false,
|
|
"field": "access_token",
|
|
"description": "<p>User access_token.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "name",
|
|
"description": "<p>User's name.</p>"
|
|
},
|
|
{
|
|
"group": "Parameter",
|
|
"type": "String",
|
|
"optional": true,
|
|
"field": "picture",
|
|
"description": "<p>User's picture.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"success": {
|
|
"fields": {
|
|
"Success 200": [
|
|
{
|
|
"group": "Success 200",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "user",
|
|
"description": "<p>User's data.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"error": {
|
|
"fields": {
|
|
"Error 4xx": [
|
|
{
|
|
"group": "Error 4xx",
|
|
"type": "Object",
|
|
"optional": false,
|
|
"field": "400",
|
|
"description": "<p>Some parameters may contain invalid values.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "401",
|
|
"description": "<p>Current user or admin access only.</p>"
|
|
},
|
|
{
|
|
"group": "Error 4xx",
|
|
"optional": false,
|
|
"field": "404",
|
|
"description": "<p>User not found.</p>"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"version": "0.0.0",
|
|
"filename": "src/api/user/index.js",
|
|
"groupTitle": "User"
|
|
}
|
|
] });
|