catissuecore/rest/ng/specimen/print-rules
...
URL | http://<host>:<port>/ catissuecore/rest/ng/specimen/print-rules |
Method | POST |
Request | application/json |
json | { "name":"My PrintRule", "specimenClass" : "Fluid", "specimenType" : "Any", "labelType" : "Cap+Slide", "dataOnLabel" : ["Specimen Label","Specimen type","CP title","Created On"], "printerName" : "TB2", "workstationIP" : "127.0.0.1" } |
Response | { id: 7 name: "My PrintRule123PrintRule" specimenClass: "Fluid123Fluid" specimenType: "Any123Any" labelType: "Cap+Slide" workstationIP: "127.0.0.1" dataOnLabel: [2] 0: "Specimen type" 1: "Specimen Label" - printerName: "TB2" } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Print rule has been created successfully |
400 | All requests | Invalid parameters, e.g duplicate Print rule name, blank Print rule name etc |
401 | All requests | Authorization failed, User doesn’t have Authority |
500 | All requests | Internal server error, Encountered server error while performing operations |