GET request/clevel/equivilantco2/{co2kg}

Returns the Equivilant CO2 Amount

Request Information

URI Parameters

NameDescriptionTypeAdditional information
co2kg

decimal number

Required

Body Parameters

None.

Response Information

Resource Description

EquivalentCo2AmountResponse
NameDescriptionTypeAdditional information
equiCo2Amount

EquivalentCo2Amountview

None.

IsServerError

boolean

None.

IsSuccess

boolean

None.

JsonResult

string

None.

Response Formats

application/json, text/json

Sample:
{
  "equiCo2Amount": {
    "total": 1,
    "unit": "sample string 2",
    "name": "sample string 3",
    "description": "sample string 4",
    "fontAwesomeIconCss": "sample string 5"
  },
  "jsonResult": "sample string 1",
  "isSuccess": true,
  "isServerError": true
}

application/xml, text/xml

Sample:
<CLevelcarbon.EquivalentCo2AmountResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.CLevelCarbon">
  <IsServerError>true</IsServerError>
  <IsSuccess>true</IsSuccess>
  <JsonResult>sample string 1</JsonResult>
  <equiCo2Amount>
    <Description>sample string 4</Description>
    <FontAwesomeIconCss>sample string 5</FontAwesomeIconCss>
    <Name>sample string 3</Name>
    <Total>1</Total>
    <Unit>sample string 2</Unit>
  </equiCo2Amount>
</CLevelcarbon.EquivalentCo2AmountResponse>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="equiCo2Amount.Total"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="equiCo2Amount.Unit"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="equiCo2Amount.Name"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="equiCo2Amount.Description"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="equiCo2Amount.FontAwesomeIconCss"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="JsonResult"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsSuccess"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsServerError"

True
--MultipartDataMediaFormatterBoundary1q2w3e--