POST api/Salud/NuevaEnfermedad
Request Information
URI Parameters
None.
Body Parameters
enfermedadesName | Description | Type | Additional information |
---|---|---|---|
idEmpresa | globally unique identifier |
None. |
|
idEnfermedad | integer |
None. |
|
nombre | string |
None. |
|
sintomas | string |
None. |
|
tratamiento | string |
None. |
|
eliminado | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "idEmpresa": "73a11df3-d9ad-4a7b-8912-5539b7e468b2", "idEnfermedad": 2, "nombre": "sample string 3", "sintomas": "sample string 4", "tratamiento": "sample string 5", "eliminado": true }
application/xml, text/xml
Sample:
<enfermedades xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GF.WS"> <eliminado>true</eliminado> <idEmpresa>73a11df3-d9ad-4a7b-8912-5539b7e468b2</idEmpresa> <idEnfermedad>2</idEnfermedad> <nombre>sample string 3</nombre> <sintomas>sample string 4</sintomas> <tratamiento>sample string 5</tratamiento> </enfermedades>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="idEmpresa" 73a11df3-d9ad-4a7b-8912-5539b7e468b2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="idEnfermedad" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="nombre" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="sintomas" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="tratamiento" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="eliminado" True --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" System.Object --MultipartDataMediaFormatterBoundary1q2w3e--