POST Api/OilCode/GetAll

Request Information

URI Parameters

None.

Body Parameters

OilCodeDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

OilCodeId

string

None.

OilName

string

None.

PertCode

string

None.

OilBriefName

string

None.

Density

decimal number

None.

Price

decimal number

None.

Price1

decimal number

None.

Price2

decimal number

None.

Price3

decimal number

None.

Price4

decimal number

None.

Price5

decimal number

None.

Price6

decimal number

None.

Price7

decimal number

None.

IsuseOil

boolean

None.

CreateTime

date

None.

CustomerId

globally unique identifier

None.

OilStationId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "1ef04143-72a5-4246-84ac-1d2dc5b3421e",
  "OilCodeId": "sample string 2",
  "OilName": "sample string 3",
  "PertCode": "sample string 4",
  "OilBriefName": "sample string 5",
  "Density": 1.0,
  "Price": 1.0,
  "Price1": 1.0,
  "Price2": 1.0,
  "Price3": 1.0,
  "Price4": 1.0,
  "Price5": 1.0,
  "Price6": 1.0,
  "Price7": 1.0,
  "IsuseOil": true,
  "CreateTime": "2026-03-02T19:50:39.0120421+08:00",
  "CustomerId": "c11650a9-5673-4f5a-8c1e-61f49a5ea407",
  "OilStationId": "b1a19403-ff1e-43e8-ae69-400ab2b106ec"
}

application/xml, text/xml

Sample:
<OilCodeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZShOil.Model">
  <CreateTime>2026-03-02T19:50:39.0120421+08:00</CreateTime>
  <CustomerId>c11650a9-5673-4f5a-8c1e-61f49a5ea407</CustomerId>
  <Density>1</Density>
  <Id>1ef04143-72a5-4246-84ac-1d2dc5b3421e</Id>
  <IsuseOil>true</IsuseOil>
  <OilBriefName>sample string 5</OilBriefName>
  <OilCodeId>sample string 2</OilCodeId>
  <OilName>sample string 3</OilName>
  <OilStationId>b1a19403-ff1e-43e8-ae69-400ab2b106ec</OilStationId>
  <PertCode>sample string 4</PertCode>
  <Price>1</Price>
  <Price1>1</Price1>
  <Price2>1</Price2>
  <Price3>1</Price3>
  <Price4>1</Price4>
  <Price5>1</Price5>
  <Price6>1</Price6>
  <Price7>1</Price7>
</OilCodeDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.