Versions Compared

Key

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

catissuecore/rest/ng/specimen/print-rules/name={ruleName}

or

catissuecore/rest/ng/specimen/print-rules/{id}

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

...

http[s]:<host>:<port>/catissuecore/rest/ng/specimen/print-rules/name={ruleName}

...

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

Use this URL to update print rule in caTissue application.

...

Below is the example of the update print rule:

URL

http://<host>:<port>/catissuecore/rest/ng/specimen/print-rules/name={ruleName}

or

catissuecore/rest/ng/specimen/print-rules/{ruleId}

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

}

...