GET api/Month/GetMonthById/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

MonthDTO
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

value

integer

None.

logging

boolean

None.

yearId

integer

None.

Year

YearDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "value": 3,
  "logging": true,
  "yearId": 5,
  "Year": {
    "id": 1,
    "name": "sample string 2",
    "startYear": "sample string 3",
    "endYear": "sample string 4",
    "isNewYear": true,
    "currentYear": "sample string 6"
  }
}

application/xml, text/xml

Sample:
<MonthDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Application.DTOs">
  <Year>
    <currentYear>sample string 6</currentYear>
    <endYear>sample string 4</endYear>
    <id>1</id>
    <isNewYear>true</isNewYear>
    <name>sample string 2</name>
    <startYear>sample string 3</startYear>
  </Year>
  <id>1</id>
  <logging>true</logging>
  <name>sample string 2</name>
  <value>3</value>
  <yearId>5</yearId>
</MonthDTO>