POST api/TotalAyushCare/AdminLogin

Documentation for 'AdminLogin'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "AdminDetails": {
    "Id": "sample string 1",
    "UserName": "sample string 2",
    "Password": "sample string 3",
    "Role": "sample string 4",
    "IsActive": "sample string 5",
    "Action": "sample string 6",
    "Source": "sample string 7"
  }
}

application/xml, text/xml

Sample:
<AdminLoginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <AdminDetails>
    <Action>sample string 6</Action>
    <Id>sample string 1</Id>
    <IsActive>sample string 5</IsActive>
    <Password>sample string 3</Password>
    <Role>sample string 4</Role>
    <Source>sample string 7</Source>
    <UserName>sample string 2</UserName>
  </AdminDetails>
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
</AdminLoginRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'AdminLoginRequest'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "AdminDetails": {
    "Id": "sample string 1",
    "UserName": "sample string 2",
    "Password": "sample string 3",
    "Role": "sample string 4",
    "IsActive": "sample string 5",
    "Action": "sample string 6",
    "Source": "sample string 7"
  }
}

application/xml, text/xml

Sample:
<AdminLoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <AdminDetails>
    <Action>sample string 6</Action>
    <Id>sample string 1</Id>
    <IsActive>sample string 5</IsActive>
    <Password>sample string 3</Password>
    <Role>sample string 4</Role>
    <Source>sample string 7</Source>
    <UserName>sample string 2</UserName>
  </AdminDetails>
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <message>sample string 1</message>
  <result>sample string 2</result>
</AdminLoginResponse>