GET api/v1/suinocultura/ObterMedicamentosLancados?granja={granja}&lote={lote}
Obter medicamentos lançados
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
granja | integer |
Required |
|
lote | integer |
Required |
Requires Authorization!
Roles:
Body Parameters
None.
Response Information
Resource Description
ResultOfListOfMedicamentoLancadoResponseName | Description | Type | Additional information |
---|---|---|---|
Data | Collection of MedicamentoLancadoResponse |
None. |
|
Errors | Collection of string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": [ { "Id": 1, "Medicamento": { "CodMedicamento": 1, "Medicamento": "sample string 2", "Carencia": 3 }, "QtdeSuinosTratados": 2, "MotivosTratamentos": [ { "CodMotivoTratamento": 1, "MotivoTrantamento": "sample string 2" }, { "CodMotivoTratamento": 1, "MotivoTrantamento": "sample string 2" } ], "DtInicial": "2025-04-29T12:34:57.9813083-03:00", "DtFinal": "2025-04-29T12:34:57.9813083-03:00" }, { "Id": 1, "Medicamento": { "CodMedicamento": 1, "Medicamento": "sample string 2", "Carencia": 3 }, "QtdeSuinosTratados": 2, "MotivosTratamentos": [ { "CodMotivoTratamento": 1, "MotivoTrantamento": "sample string 2" }, { "CodMotivoTratamento": 1, "MotivoTrantamento": "sample string 2" } ], "DtInicial": "2025-04-29T12:34:57.9813083-03:00", "DtFinal": "2025-04-29T12:34:57.9813083-03:00" } ], "Errors": [ "sample string 1", "sample string 2" ] }
application/xml, text/xml
Sample:
<ResultOfArrayOfMedicamentoLancadoResponseokXNUpNz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Lar.Entities.Ep"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Lar.Sicop.Entities.Sicop.Suinocultura"> <d2p1:MedicamentoLancadoResponse> <d2p1:DtFinal>2025-04-29T12:34:57.9813083-03:00</d2p1:DtFinal> <d2p1:DtInicial>2025-04-29T12:34:57.9813083-03:00</d2p1:DtInicial> <d2p1:Id>1</d2p1:Id> <d2p1:Medicamento> <d2p1:Carencia>3</d2p1:Carencia> <d2p1:CodMedicamento>1</d2p1:CodMedicamento> <d2p1:Medicamento>sample string 2</d2p1:Medicamento> </d2p1:Medicamento> <d2p1:MotivosTratamentos> <d2p1:MotivoTratamento> <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento> <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento> </d2p1:MotivoTratamento> <d2p1:MotivoTratamento> <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento> <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento> </d2p1:MotivoTratamento> </d2p1:MotivosTratamentos> <d2p1:QtdeSuinosTratados>2</d2p1:QtdeSuinosTratados> </d2p1:MedicamentoLancadoResponse> <d2p1:MedicamentoLancadoResponse> <d2p1:DtFinal>2025-04-29T12:34:57.9813083-03:00</d2p1:DtFinal> <d2p1:DtInicial>2025-04-29T12:34:57.9813083-03:00</d2p1:DtInicial> <d2p1:Id>1</d2p1:Id> <d2p1:Medicamento> <d2p1:Carencia>3</d2p1:Carencia> <d2p1:CodMedicamento>1</d2p1:CodMedicamento> <d2p1:Medicamento>sample string 2</d2p1:Medicamento> </d2p1:Medicamento> <d2p1:MotivosTratamentos> <d2p1:MotivoTratamento> <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento> <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento> </d2p1:MotivoTratamento> <d2p1:MotivoTratamento> <d2p1:CodMotivoTratamento>1</d2p1:CodMotivoTratamento> <d2p1:MotivoTrantamento>sample string 2</d2p1:MotivoTrantamento> </d2p1:MotivoTratamento> </d2p1:MotivosTratamentos> <d2p1:QtdeSuinosTratados>2</d2p1:QtdeSuinosTratados> </d2p1:MedicamentoLancadoResponse> </Data> <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Errors> </ResultOfArrayOfMedicamentoLancadoResponseokXNUpNz>