POST api/AppMakeRecipe/AddRecipeInfo
“AddRecipeInfo”的文档。
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| inPrame | “inPrame”的文档。 |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"RoleType": 1,
"RecipeDate": "sample string 2",
"AuthorId": "1fd80eeb-1fad-450e-828f-8489ba2cfa07",
"UserId": "12d213c7-c1aa-4db3-9a2d-6333af0353ac",
"age": 5.0,
"Flag": "sample string 6",
"RecipeList": [
{
"Category": "sample string 1",
"Code": "sample string 2",
"Weight": "sample string 3",
"Order": 4,
"yeyptid": 5
},
{
"Category": "sample string 1",
"Code": "sample string 2",
"Weight": "sample string 3",
"Order": 4,
"yeyptid": 5
},
{
"Category": "sample string 1",
"Code": "sample string 2",
"Weight": "sample string 3",
"Order": 4,
"yeyptid": 5
}
]
}
application/xml, text/xml
Sample:
<AppMakeRecipe.InInsertPrame xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OP.WebApi.Models">
<AuthorId>1fd80eeb-1fad-450e-828f-8489ba2cfa07</AuthorId>
<Flag>sample string 6</Flag>
<RecipeDate>sample string 2</RecipeDate>
<RecipeList>
<AppMakeRecipe.InsertData>
<Category>sample string 1</Category>
<Code>sample string 2</Code>
<Order>4</Order>
<Weight>sample string 3</Weight>
<yeyptid>5</yeyptid>
</AppMakeRecipe.InsertData>
<AppMakeRecipe.InsertData>
<Category>sample string 1</Category>
<Code>sample string 2</Code>
<Order>4</Order>
<Weight>sample string 3</Weight>
<yeyptid>5</yeyptid>
</AppMakeRecipe.InsertData>
<AppMakeRecipe.InsertData>
<Category>sample string 1</Category>
<Code>sample string 2</Code>
<Order>4</Order>
<Weight>sample string 3</Weight>
<yeyptid>5</yeyptid>
</AppMakeRecipe.InsertData>
</RecipeList>
<RoleType>1</RoleType>
<UserId>12d213c7-c1aa-4db3-9a2d-6333af0353ac</UserId>
<age>5</age>
</AppMakeRecipe.InInsertPrame>
application/x-www-form-urlencoded
Sample:
Response Information
Response body formats
application/json, text/json
Sample:
{
"Model": {},
"Model1": {},
"Model2": {},
"Model3": {},
"Model4": {},
"Model5": {},
"Model6": {},
"ErrorMessage": "sample string 8",
"ErroCode": -1
}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OP.WebApi.Models"> <_x003C_ErrorMessage_x003E_k__BackingField>sample string 8</_x003C_ErrorMessage_x003E_k__BackingField> <_x003C_Model1_x003E_k__BackingField /> <_x003C_Model2_x003E_k__BackingField /> <_x003C_Model3_x003E_k__BackingField /> <_x003C_Model4_x003E_k__BackingField /> <_x003C_Model5_x003E_k__BackingField /> <_x003C_Model6_x003E_k__BackingField /> <_x003C_Model_x003E_k__BackingField /> </ResultModel>