openspecimen/rest/ng/print-rules
...
Use this resource to get print rules. This API returns all the print-rules present in the openSpecimen application. User can also specify the search string which will be used to match the values.
Use HTTP GET method to call this API by passing the below details in JSON format.
...
Parameter | Details |
---|---|
maxResults | maximum Maximum number of records to fetch. By default it will be 1000 |
...
URL | http://<host>:<port>/openspecimen /rest/ng/print-rules |
Method | GET |
Request | application/json |
Response | [{ id: 3 name: "My PrintRule" specimenClass: "Fluidfluid" specimenType: "Anyany" labelType: "Capcap+Slideslide" workstationIP: "127.0.0.1" dataOnLabel: [ 0: "Specimen type" 1: "Specimen Label"] printerName: "TB2" cpShortTitle: "SCS_CP" loginName: { domainName: "catissue" }, { id: 4 name: "My PrintRule1" specimenClass: "Anyany" specimenType: "Anyany" labelType: "Capcap+Slideslide" workstationIP: "127.0.0.1" dataOnLabel: [ 0: "Specimen type" 1: "Specimen Label"] printerName: "TB2" cpShortTitle: "SCS_CP" } ]
|
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Print rules got successfully |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |