Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

openspecimen/rest/ng/print-rules/{ruleId}

or

openspecimen/rest/ng/print-rules/name={name}

 

Use this resource to get print rule. This API returns print rule present in the openSpecimen application. Use HTTP GET method to call this API by passing the below details in JSON format.

 

Below are the attributes which need to be sent in the request body:

Parameter
Details
ruleIdRule id to fetch the print rule
nameRule name to fetch the print rule


http[s]:<host>:<port>/openspecimen/rest/ng/print-rules/{ruleId}

or

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


Use this URL to get institute by an id in openSpecimen application.

Result:

The response of this request will contains the details of the print rule.

Below is the example of the get print rule :

URL

http://<host>:<port>/catissuecore/rest/ng/print-rules/3

or

http://<host>:<port>/catissuecore/rest/ng/print-rules/name=My PrintRule

MethodGET
Requestapplication/json

Response

{
id3
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 got successfully
401All requestsAuthorization failed, user doesn’t have authority
500All requestsInternal server error, encountered server error while performing operations
  • No labels