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": "19c06081-dbc9-424b-9641-2ff0e4ba6428",
"UserId": "a0977861-fe17-4df4-af4c-2f2a446335a3",
"age": 5.0,
"Flag": "sample string 6",
"RecipeList": [
{
"Category": "sample string 1",
"Code": "sample string 2",
"Weight": "sample string 3",
"Order": 4
},
{
"Category": "sample string 1",
"Code": "sample string 2",
"Weight": "sample string 3",
"Order": 4
},
{
"Category": "sample string 1",
"Code": "sample string 2",
"Weight": "sample string 3",
"Order": 4
}
]
}
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>19c06081-dbc9-424b-9641-2ff0e4ba6428</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>
</AppMakeRecipe.InsertData>
<AppMakeRecipe.InsertData>
<Category>sample string 1</Category>
<Code>sample string 2</Code>
<Order>4</Order>
<Weight>sample string 3</Weight>
</AppMakeRecipe.InsertData>
<AppMakeRecipe.InsertData>
<Category>sample string 1</Category>
<Code>sample string 2</Code>
<Order>4</Order>
<Weight>sample string 3</Weight>
</AppMakeRecipe.InsertData>
</RecipeList>
<RoleType>1</RoleType>
<UserId>a0977861-fe17-4df4-af4c-2f2a446335a3</UserId>
<age>5</age>
</AppMakeRecipe.InInsertPrame>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{
"Model": {},
"ErrorMessage": "sample string 2",
"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 2</_x003C_ErrorMessage_x003E_k__BackingField> <_x003C_Model_x003E_k__BackingField /> </ResultModel>