SUPPORTED METHODS:
GET
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
id (required) | integer | Skill id |
CREATE
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
name (required) | varchar | Skill name |
UPDATE
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
id (required) | integer | Skill id |
name (required) | varchar | Skill name |
DELETE
Parameters | Type | Description |
---|---|---|
token (required) | Valid token | |
id (required) | integer | Skill id |
DOCUMENTATION
GET
Returns skill specified by id.
Level 5 is required
--
Example Request:
{
"module":"staff.skill",
"method":"GET",
"request":{
"id":"374"
}
}
Example Response:
{
"status":1,
"data":{
"id":"374",
"title":"Word"
},
"token":"xxxxxxx"
}
CREATE
Creates new skill.
Level 5 is required
--
Example Request:
{
"module":"staff.skill",
"method":"CREATE",
"request":{
"name":"jQuery"
}
}
Example Response:
{
"status":1,
"data":{
"id":"1496",
"title":"JQuery"
},
"token":"xxxxxxx"
}
UPDATE
Updates skill.
Level 5 is required
--
Example Request:
{
"module":"staff.skill",
"method":"UPDATE",
"request":{
"id":"1496",
"name":"jQuery - updated"
}
}
Example Response:
{
"status":1,
"data":{
"id":"1496",
"title":"JQuery - updated"
},
"token":"xxxxxxx"
}
DELETE
Deletes skill.
Level 5 is required
--
Example Request:
{
"module":"staff.skill",
"method":"DELETE",
"request":{
"id":"1496"
}
}
Example Response:
{
"status":1,
"data":"",
"token":"xxxxxxx"
}