POST api/Logindashbord
login to database use user name and password
Request Information
URI Parameters
None.
Body Parameters
{"username":"admin","password":"1"}
user_data| Name | Description | Type | Additional information |
|---|---|---|---|
| firstname | string |
None. |
|
| lastname | string |
None. |
|
| phon | string |
None. |
|
| string |
None. |
||
| country | integer |
None. |
|
| city | integer |
None. |
|
| town | integer |
None. |
|
| active | integer |
None. |
|
| password | string |
None. |
|
| zipuser | string |
None. |
|
| countrycode | integer |
None. |
|
| userlevel | integer |
None. |
|
| address | string |
None. |
|
| issupplier | integer |
None. |
|
| supplierfather | integer |
None. |
|
| idwarehouse | integer |
None. |
|
| iduser | integer |
None. |
|
| site_id | integer |
None. |
|
| IsPhonChecked | integer |
None. |
|
| username | string |
None. |
|
| fcm_token | string |
None. |
|
| topic | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"firstname": "sample string 1",
"lastname": "sample string 2",
"phon": "sample string 3",
"email": "sample string 4",
"country": 5,
"city": 6,
"town": 7,
"active": 8,
"password": "sample string 9",
"zipuser": "sample string 10",
"countrycode": 11,
"userlevel": 12,
"address": "sample string 13",
"issupplier": 14,
"supplierfather": 15,
"idwarehouse": 16,
"iduser": 17,
"site_id": 18,
"IsPhonChecked": 19,
"username": "sample string 20",
"fcm_token": "sample string 21",
"topic": "sample string 22"
}
text/xml
Sample:
<user_data xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zad_api"> <IsPhonChecked>19</IsPhonChecked> <active>8</active> <address>sample string 13</address> <city>6</city> <country>5</country> <countrycode>11</countrycode> <email>sample string 4</email> <fcm_token>sample string 21</fcm_token> <firstname>sample string 1</firstname> <iduser>17</iduser> <idwarehouse>16</idwarehouse> <issupplier>14</issupplier> <lastname>sample string 2</lastname> <password>sample string 9</password> <phon>sample string 3</phon> <site_id>18</site_id> <supplierfather>15</supplierfather> <topic>sample string 22</topic> <town>7</town> <userlevel>12</userlevel> <username>sample string 20</username> <zipuser>sample string 10</zipuser> </user_data>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
{"data" [{"username": "admin","user_id": "6"}],"rowcount": 1,"status": true,"msg_error": ""}
outdata| Name | Description | Type | Additional information |
|---|---|---|---|
| data | DataTable |
None. |
|
| rowcount |
if get data then return count row else return the id row affected |
integer |
None. |
| status | boolean |
None. |
|
| msg_error | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": null,
"rowcount": 1,
"status": true,
"msg_error": "sample string 3"
}
text/xml
Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Zad_api"> <data i:nil="true" /> <msg_error>sample string 3</msg_error> <rowcount>1</rowcount> <status>true</status> </outdata>