POST api/WeekSummary

Request Information

URI Parameters

None.

Body Parameters

WeekSummary
NameDescriptionTypeAdditional information
WeekId

integer

None.

StartDate

date

None.

Weight

decimal number

None.

LastWeight

decimal number

None.

GoalId

integer

None.

Exception

integer

None.

wkBeer

integer

None.

DrinkTotal

integer

None.

ExerciseTotal

decimal number

None.

CaloriesTotal

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "WeekId": 1,
  "StartDate": "2025-01-07T17:58:45.7359913-06:00",
  "Weight": 2.0,
  "LastWeight": 3.0,
  "GoalId": 1,
  "Exception": 4,
  "wkBeer": 5,
  "DrinkTotal": 6,
  "ExerciseTotal": 7.0,
  "CaloriesTotal": 8
}

text/html

Sample:
{"WeekId":1,"StartDate":"2025-01-07T17:58:45.7359913-06:00","Weight":2.0,"LastWeight":3.0,"GoalId":1,"Exception":4,"wkBeer":5,"DrinkTotal":6,"ExerciseTotal":7.0,"CaloriesTotal":8}

application/xml, text/xml

Sample:
<WeekSummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DayAPI.Models">
  <CaloriesTotal>8</CaloriesTotal>
  <DrinkTotal>6</DrinkTotal>
  <Exception>4</Exception>
  <ExerciseTotal>7</ExerciseTotal>
  <GoalId>1</GoalId>
  <LastWeight>3</LastWeight>
  <StartDate>2025-01-07T17:58:45.7359913-06:00</StartDate>
  <WeekId>1</WeekId>
  <Weight>2</Weight>
  <wkBeer>5</wkBeer>
</WeekSummary>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>