add_subject.php POST
This will add a new subject to an existing term
Request
| Parameter | Type | Description |
|---|---|---|
| term_id | number |
this is the id of a term where the subject will be added. |
| sub_name | string |
this is the name of the subject to be added. |
| stud_id | number |
this is the id of the user. |
| pass | string |
this is the user's password. |
Response Success
{
"code":202,
"response":"success"
}
Response Auth Error
{
"code":351,
"msg":"User is unauthorized"
}
Response Param Error
{
"code":-9999,
"msg":"Parameter Error"
}