POST api/Salud/NuevoMedicamento
Request Information
URI Parameters
None.
Body Parameters
medicamentosName | Description | Type | Additional information |
---|---|---|---|
idEmpresa | globally unique identifier |
None. |
|
idMedicamento | integer |
None. |
|
nombre1 | string |
None. |
|
nombre2 | string |
None. |
|
comentarios | string |
None. |
|
eliminado | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "idEmpresa": "0fa7f842-276d-407e-bd7b-9a0438df22de", "idMedicamento": 2, "nombre1": "sample string 3", "nombre2": "sample string 4", "comentarios": "sample string 5", "eliminado": true }
application/xml, text/xml
Sample:
<medicamentos xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GF.WS"> <comentarios>sample string 5</comentarios> <eliminado>true</eliminado> <idEmpresa>0fa7f842-276d-407e-bd7b-9a0438df22de</idEmpresa> <idMedicamento>2</idMedicamento> <nombre1>sample string 3</nombre1> <nombre2>sample string 4</nombre2> </medicamentos>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="idEmpresa" 0fa7f842-276d-407e-bd7b-9a0438df22de --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="idMedicamento" 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="nombre1" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="nombre2" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="comentarios" 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--