POST api/Lunchcart?isNewLcCreated={isNewLcCreated}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isNewLcCreated

boolean

Required

Body Parameters

None.

Response Information

Resource Description

LunchcartResponse
NameDescriptionTypeAdditional information
Lunchcart

Lunchcart

None.

HasSessionCustomer

boolean

None.

Success

boolean

None.

ExceptionMessage

string

None.

SuccessMessage

string

None.

IsBaseResponse

boolean

None.

NewSessionLunchcartCreated

boolean

None.

Response 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 for property 'NodeProduct' with type 'Specialtys.DTO.Product'. Path 'Lunchcart.Items[0].ChildProductList[0]'.

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 for property 'NodeProduct' with type 'Specialtys.DTO.Product'. Path 'Lunchcart.Items[0].ChildProductList[0]'.

text/html

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/html'. Exception message: Self referencing loop detected for property 'NodeProduct' with type 'Specialtys.DTO.Product'. Path 'Lunchcart.Items[0].ChildProductList[0]'.

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[[Specialtys.DTO.ChildProduct, Specialtys.DTO, 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[[Specialtys.DTO.ChildProduct, Specialtys.DTO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.