POST api/User

Request Information

URI Parameters

None.

Body Parameters

User
NameDescriptionTypeAdditional information
UserName

string

None.

IsActive

boolean

None.

LastLoggedIn

date

None.

Password

string

None.

PasswordHash

string

None.

Email

string

None.

EmailConfirmed

boolean

None.

PhoneNumber

string

None.

PhoneNumberConfirmed

boolean

None.

LockoutEndDate

date

None.

LockoutEnabled

boolean

None.

AccessFailedCount

integer

None.

FirstName

string

None.

LastName

string

None.

NationalID

string

None.

BirthDate

date

None.

BirthPlace

string

None.

Image

string

None.

Website

string

None.

PostalCode

string

None.

Address

string

None.

EduDegree

string

None.

ActiveCode

string

None.

Roles

Collection of Role

None.

SerialNumber

every time the user changes his Password, or an admin changes his Roles or stat/IsActive, create a new `SerialNumber` GUID and store it in the DB.

string

None.

Articles

Collection of Article

None.

ArticleScores

Collection of ArticleScore

None.

ArticleLikes

Collection of ArticleLike

None.

Comments

Collection of Comment

None.

CommentLikes

Collection of CommentLike

None.

Orders

Collection of Order

None.

CreatedDate

date

None.

CreatedBy

string

Max length: 256

UpdatedDate

date

None.

UpdatedBy

string

Max length: 256

DeletedDate

date

None.

DeletedBy

string

Max length: 256

Id

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'ArNikAPI.DomainClasses.Security.User'. Path 'Roles[0].Users'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'ArNikAPI.DomainClasses.Security.User'. Path 'Roles[0].Users'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[ArNikAPI.DomainClasses.Articles.ArticleCategory, ArNikAPI.DomainClasses, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[ArNikAPI.DomainClasses.Articles.ArticleCategory, ArNikAPI.DomainClasses, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.