Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

catissuecore/rest/ng/specimen/print-rules

...

URLhttp://<host>:<port>/catissuecore/rest/ng/specimen/print-rules
MethodPOST
Requestapplication/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

{
id7
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
200All resourcesPrint rule has been created successfully
400All requestsInvalid parameters, e.g  duplicate Print rule name, blank Print rule name etc
401All requestsAuthorization failed, User doesn’t have Authority
500All requestsInternal server error, Encountered server error while performing operations