GET api/Users/profile?login={login}

Профиль пользователя

Request Information

URI Parameters

NameDescriptionTypeAdditional information
login

Логин пользователя

string

Required

Body Parameters

None.

Response Information

Success Resource Description

Заполненный профиль пользователя

UserProfileViewModel
NameDescriptionTypeAdditional information
Id

Идентификатор пользователя

integer

None.

Login

Логин пользователя

string

None.

Email

Email пользователя

string

None.

FirstName

Имя пользователя

string

None.

MiddleName

Отчество пользователя

string

None.

LastName

Фамилия пользователя

string

None.

Region

Регион

RegionViewModel

None.

Organization

Организация

string

None.

Department

Отдел

string

None.

Position

Должность

string

None.

Chief

Руководитель

EmployeeViewModel

None.

Alternate

Заместитель по согласованию заявок, задач и проектов на время отпуска/командировки

EmployeeViewModel

None.

StaffCount

Кол-во подчинённых

integer

None.

PostalCode

Индекс

string

None.

Address

Адрес

string

None.

Room

Офис

string

None.

InternalPhone

Внутренний телефон

string

None.

CityPhone

Городской телефон

string

None.

MobilePhone

Мобильный телефон

string

None.

IsActual

Актуальность пользователя

boolean

None.

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Login": "sample string 2",
  "Email": "sample string 3",
  "FirstName": "sample string 4",
  "MiddleName": "sample string 5",
  "LastName": "sample string 6",
  "Region": {
    "Id": 1,
    "Code": "sample string 2",
    "Name": "sample string 3"
  },
  "Organization": "sample string 7",
  "Department": "sample string 8",
  "Appoint": "sample string 10",
  "Position": "sample string 10",
  "Chief": {
    "Id": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Appoint": "sample string 5",
    "Position": "sample string 5",
    "Department": "sample string 6",
    "Organization": "sample string 7"
  },
  "Alternate": {
    "Id": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Appoint": "sample string 5",
    "Position": "sample string 5",
    "Department": "sample string 6",
    "Organization": "sample string 7"
  },
  "StaffCount": 11,
  "PostalCode": "sample string 12",
  "Address": "sample string 13",
  "Room": "sample string 14",
  "InternalPhone": "sample string 15",
  "CityPhone": "sample string 16",
  "MobilePhone": "sample string 17",
  "IsActual": true
}

text/html, multipart/form-data

Sample:
{"Id":1,"Login":"sample string 2","Email":"sample string 3","FirstName":"sample string 4","MiddleName":"sample string 5","LastName":"sample string 6","Region":{"Id":1,"Code":"sample string 2","Name":"sample string 3"},"Organization":"sample string 7","Department":"sample string 8","Appoint":"sample string 10","Position":"sample string 10","Chief":{"Id":1,"FirstName":"sample string 2","LastName":"sample string 3","Appoint":"sample string 5","Position":"sample string 5","Department":"sample string 6","Organization":"sample string 7"},"Alternate":{"Id":1,"FirstName":"sample string 2","LastName":"sample string 3","Appoint":"sample string 5","Position":"sample string 5","Department":"sample string 6","Organization":"sample string 7"},"StaffCount":11,"PostalCode":"sample string 12","Address":"sample string 13","Room":"sample string 14","InternalPhone":"sample string 15","CityPhone":"sample string 16","MobilePhone":"sample string 17","IsActual":true}

application/xml, text/xml

Sample:
<UserProfileViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Users">
  <Address>sample string 13</Address>
  <Alternate>
    <Appoint>sample string 5</Appoint>
    <Department>sample string 6</Department>
    <FirstName>sample string 2</FirstName>
    <Id>1</Id>
    <LastName>sample string 3</LastName>
    <Organization>sample string 7</Organization>
    <Position>sample string 5</Position>
  </Alternate>
  <Appoint>sample string 10</Appoint>
  <Chief>
    <Appoint>sample string 5</Appoint>
    <Department>sample string 6</Department>
    <FirstName>sample string 2</FirstName>
    <Id>1</Id>
    <LastName>sample string 3</LastName>
    <Organization>sample string 7</Organization>
    <Position>sample string 5</Position>
  </Chief>
  <CityPhone>sample string 16</CityPhone>
  <Department>sample string 8</Department>
  <Email>sample string 3</Email>
  <FirstName>sample string 4</FirstName>
  <Id>1</Id>
  <InternalPhone>sample string 15</InternalPhone>
  <IsActual>true</IsActual>
  <LastName>sample string 6</LastName>
  <Login>sample string 2</Login>
  <MiddleName>sample string 5</MiddleName>
  <MobilePhone>sample string 17</MobilePhone>
  <Organization>sample string 7</Organization>
  <Position>sample string 10</Position>
  <PostalCode>sample string 12</PostalCode>
  <Region xmlns:d2p1="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Directory">
    <d2p1:Code>sample string 2</d2p1:Code>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:Name>sample string 3</d2p1:Name>
  </Region>
  <Room>sample string 14</Room>
  <StaffCount>11</StaffCount>
</UserProfileViewModel>