POST api/PetData/PostPetData

Request Information

URI Parameters

None.

Body Parameters

PetData
NameDescriptionTypeAdditional information
PetDataId

integer

None.

PetId

integer

None.

Date

date

None.

Notes

string

None.

TakeAwayNotes

string

None.

Status

integer

None.

AddedBy

string

None.

PracticeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PetDataId": 1,
  "PetId": 1,
  "Date": "2024-12-21T05:35:09.5055981+00:00",
  "Notes": "sample string 2",
  "TakeAwayNotes": "sample string 3",
  "Status": 1,
  "AddedBy": "sample string 4",
  "PracticeId": 5
}

text/html

Sample:
{"PetDataId":1,"PetId":1,"Date":"2024-12-21T05:35:09.5055981+00:00","Notes":"sample string 2","TakeAwayNotes":"sample string 3","Status":1,"AddedBy":"sample string 4","PracticeId":5}

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[[VetAPI.DataModel.AspNetUser, VetAPI, 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[[VetAPI.DataModel.AspNetUser, VetAPI, 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 'PetData'.

Response Information

Resource Description

PetData
NameDescriptionTypeAdditional information
PetDataId

integer

None.

PetId

integer

None.

Date

date

None.

Notes

string

None.

TakeAwayNotes

string

None.

Status

integer

None.

AddedBy

string

None.

PracticeId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "PetDataId": 1,
  "PetId": 1,
  "Date": "2024-12-21T05:35:09.599331+00:00",
  "Notes": "sample string 2",
  "TakeAwayNotes": "sample string 3",
  "Status": 1,
  "AddedBy": "sample string 4",
  "PracticeId": 5
}

text/html

Sample:
{"PetDataId":1,"PetId":1,"Date":"2024-12-21T05:35:09.599331+00:00","Notes":"sample string 2","TakeAwayNotes":"sample string 3","Status":1,"AddedBy":"sample string 4","PracticeId":5}

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