POST api/auth/get
Prijava v sistem
Request Information
URI Parameters
None.
Body Parameters
Parametri za prijavo
AuthGetRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| apiKey |
Označuje instanco aplikacije v ZIS |
string |
None. |
| apiSecret |
Geslo instance aplikacije apiKey |
string |
None. |
| idWorkUnit |
Skupina računalnikkov, ki delijo podatke computerName |
integer |
None. |
| computerName |
Ime računalnika |
string |
None. |
| userName |
Uporabniško ime |
string |
None. |
| userFullName |
Lep izpis uporabnikovega imena in priimka |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"apiKey": "sample string 1",
"apiSecret": "sample string 2",
"idWorkUnit": 1,
"computerName": "sample string 3",
"userName": "sample string 4",
"userFullName": "sample string 5"
}
application/xml, text/xml
Sample:
<AuthGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000ApiAuth.Models"> <ApiKey>sample string 1</ApiKey> <ApiSecret>sample string 2</ApiSecret> <ComputerName>sample string 3</ComputerName> <Id_WorkUnit>1</Id_WorkUnit> <UserFullName>sample string 5</UserFullName> <UserId>sample string 4</UserId> </AuthGetRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Žeton in seznam dovoljenih klicev z dejanskimi naslovi
AuthGetResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| token |
Žeton,ki se uporablja v glavah zahtevkov nadaljnih klicev kot: Authorization: Bearer <token> |
string |
None. |
| apiUrls |
Seznam, klicev in njihovih url lokacij. Prvi nivo pomeni entiteto, drugi pa funkcijo na tej entiteti. |
Dictionary of string [key] and Dictionary of string [key] and string [value] [value] |
None. |
| mesasge |
Sporočilo o morebitni napaki ali opozorilu, ki ZIS javi uporabniku. |
string |
None. |
| isSuccess |
Uspešnost izvedbe klica |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"token": "sample string 1",
"apiUrls": {
"sample string 1": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
},
"sample string 2": {
"sample string 1": "sample string 2",
"sample string 3": "sample string 4"
}
},
"mesasge": "sample string 2",
"isSuccess": true
}
application/xml, text/xml
Sample:
<AuthGetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000ApiAuth.Models">
<IsSuccess>true</IsSuccess>
<Message>sample string 2</Message>
<ApiUrls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
<d2p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
<d2p1:Key>sample string 2</d2p1:Key>
<d2p1:Value>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfstringstring>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>sample string 3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfKeyValueOfstringstringty7Ep6D1>
</ApiUrls>
<Token>sample string 1</Token>
</AuthGetResponse>