Versions Compared

Key

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

catissuecore/rest/ng/specimen/print-rules

Use this resource to create new print rule in the caTissue application. Use HTTP POST method to call this API by passing the below details in JSON format.

...

http[s]:<host>:<port>/catissuecore/rest/ng/specimen/print-rules

Use this URL to add  print rule in caTissue application.

...

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

{

    "id" : 1,

    "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"    

}

...