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"],
     "printerName" : "TB2",
     "workstationIP" : "127.0.0.1"    ",
"loginName" : {"loginName" : "admin@admin.com", "domainName" :"catissue"},
"cpShortTitle" : "SCS_CP"
}

Response

{
id
7
3
name"My PrintRule"
specimenClass"Fluid"
specimenType"Any"
labelType"Cap+Slide"
workstationIP"127.0.0.1"
dataOnLabel
[
2]
0:  "Specimen type"
1:  "Specimen Label"
-
printerName"TB2"
cpShortTitle"SCS_CP"
loginName
{
loginName"admin@admin.com"
domainName"catissue"
}
-
}

 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