POST api/Lookups?medicationCategoryId={medicationCategoryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
medicationCategoryId

integer

Required

Body Parameters

Collection of MedicationCategoryViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

ParentId

integer

None.

Name

string

None.

Children

Collection of MedicationCategoryViewModel

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "parentId": 1,
    "name": "sample string 2",
    "children": []
  },
  {
    "id": 1,
    "parentId": 1,
    "name": "sample string 2",
    "children": []
  }
]

text/html

Sample:
[{"id":1,"parentId":1,"name":"sample string 2","children":[]},{"id":1,"parentId":1,"name":"sample string 2","children":[]}]

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 'UrgentCareExtra.ViewModels.ViewModels.MedicationCategoryViewModel' 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 'UrgentCareExtra.ViewModels.ViewModels.MedicationCategoryViewModel' 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 'List`1'.

Response Information

Resource Description

MedicationCategoryViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

ParentId

integer

None.

Name

string

None.

Children

Collection of MedicationCategoryViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "parentId": 1,
  "name": "sample string 2",
  "children": []
}

text/html

Sample:
{"id":1,"parentId":1,"name":"sample string 2","children":[]}

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