openspecimen/rest/ng/print-rules/{ruleIdid}
or
openspecimen/rest/ng/print-rules/name={name}
...
Below are the attributes which need to be sent in the request body:
Parameter | Details |
---|---|
ruleIdid | Rule id to fetch the print rule |
name | Rule name to fetch the print rule |
...
http[s]:<host>:<port>/openspecimen/rest/ng/print-rules/{ruleIdid}
or
http[s]:<host>:<port>/openspecimen/rest/ng/print-rules/name={name}
Use this URL to get institute print rule by an id in openSpecimen application.
...
URL |
or
|
Method | GET |
Request | application/json |
Response | { id: 3 name: "My PrintRule" specimenClass: "Fluidfluid" specimenType: "Anyany" labelType: "Cap+Slide" workstationIP: "127.0.0.1" dataOnLabel: [ 2]0: "Specimen type" 1: "Specimen Label" - printerName: "TB2" cpShortTitle: "SCS_CP" } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Print rule got successfully |
401 | All requests | Authorization failed, user doesn’t have authority |
500 | All requests | Internal server error, encountered server error while performing operations |