POST api/Lookups

Request Information

URI Parameters

None.

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

Collection of 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": []
  },
  {
    "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.