POST api/PostAlimentacion_x_idPersona
Request Information
URI Parameters
None.
Body Parameters
TB_PostListaAlimentacionECE| Name | Description | Type | Additional information |
|---|---|---|---|
| idPersona | globally unique identifier |
None. |
|
| Lista | Collection of TB_PostAlimentacionECE |
None. |
Request Formats
application/json, text/json
Sample:
{
"idPersona": "1ca6412a-5194-4175-850b-7a0e770ee112",
"Lista": [
{
"idAlimentos": "2a146feb-268e-4b5f-bec3-d767c9bc0992",
"numVeces": 2
},
{
"idAlimentos": "2a146feb-268e-4b5f-bec3-d767c9bc0992",
"numVeces": 2
}
]
}
application/xml, text/xml
Sample:
<TB_PostListaAlimentacionECE xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VC_Med_Ecuador_pr">
<Lista>
<TB_PostAlimentacionECE>
<idAlimentos>2a146feb-268e-4b5f-bec3-d767c9bc0992</idAlimentos>
<numVeces>2</numVeces>
</TB_PostAlimentacionECE>
<TB_PostAlimentacionECE>
<idAlimentos>2a146feb-268e-4b5f-bec3-d767c9bc0992</idAlimentos>
<numVeces>2</numVeces>
</TB_PostAlimentacionECE>
</Lista>
<idPersona>1ca6412a-5194-4175-850b-7a0e770ee112</idPersona>
</TB_PostListaAlimentacionECE>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
MsgRespuesta| Name | Description | Type | Additional information |
|---|---|---|---|
| codigo | string |
None. |
|
| mensaje | string |
None. |
|
| contenido | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"codigo": "sample string 1",
"mensaje": "sample string 2",
"contenido": {}
}
application/xml, text/xml
Sample:
<MsgRespuesta xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VC_Med_Ecuador_pr"> <codigo>sample string 1</codigo> <contenido /> <mensaje>sample string 2</mensaje> </MsgRespuesta>