POST api/download/islaptopvalid

Verify if Laptop is valid and can perform download.

Request Information

URI Parameters

None.

Body Parameters

LaptopRequest
NameDescriptionTypeAdditional information
MacAddress

MacAddress of Machine. (actually passing GUID from laptop now)

string

Required

String length: inclusive between 8 and 50

MachineName

Machine Name

string

Required

String length: inclusive between 3 and 50

UserId

integer

None.

CountyId

integer

None.

TokenGuidId

User GUID - TokenGuidId is a 128-bit globally unique identifier. It is a combination of letters and numbers.

string

Required

String length: inclusive between 36 and 38

Request Formats

application/json, text/json

Sample:
{
  "MacAddress": "sample string 1",
  "MachineName": "sample string 2",
  "UserId": 3,
  "CountyId": 4,
  "TokenGuidId": "sample string 5"
}

application/xml, text/xml

Sample:
<LaptopRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PrecinctAtlasWeb.API.Models.Download">
  <TokenGuidId xmlns="http://schemas.datacontract.org/2004/07/PrecinctAtlasWeb.API.Models">sample string 5</TokenGuidId>
  <CountyId>4</CountyId>
  <MacAddress>sample string 1</MacAddress>
  <MachineName>sample string 2</MachineName>
  <UserId>3</UserId>
</LaptopRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Success status and message

ReturnMessage
NameDescriptionTypeAdditional information
IsSuccessStatusCode

boolean

None.

StatusCode

HttpStatusCode

None.

Message

Collection of string

None.

ErrorType

string

None.

ErrorCode

string

None.

PayLoadItemCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessStatusCode": false,
  "StatusCode": 100,
  "Message": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorType": "sample string 1",
  "ErrorCode": "sample string 2",
  "PayLoadItemCount": 1
}

application/xml, text/xml

Sample:
<ReturnMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PrecinctAtlasWeb.API.Models">
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorType>sample string 1</ErrorType>
  <Message xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Message>
  <PayLoadItemCount>1</PayLoadItemCount>
  <StatusCode>Continue</StatusCode>
</ReturnMessage>