Test the LSM API - LabCollector

Search Knowledge Base by Keyword

Test the LSM API

You are here:
← All Topics

1. Available methods in LSM web service

Note: URL works with http and https


1.1. Jobs

 

1.2. Equipment

 

1.3. Assays

 

1.4. Categories 

 

1.5. Sample Types

 

1.6. Parameters

1.7. Requesters 

 

1.8. Create requesters 

Example of create:

<requesters>
<requester code='R01' name='Requester from API' taxNumber='12346789'>
<billing address='One street' city='City' state='State' country='US' zip='99999' phone='555123123' fax='555123123' contactFirstName='Jane' contactLastName='Doe' contactEmail='[email protected]' ></billing> 
<shipping address='One street' city='City' state='State' country='US' zip='99999' phone='555123123' fax='555123123' contactFirstName='Jane' contactLastName='Doe' contactEmail='[email protected]' ></shipping> 
</requester>
</requesters>

 

1.9. Create job

Example of create:

<jobs> 
<job number='XP-001' requester='1'> 
<parameter id='1' value='text'></parameter>
<sample name='sample01' type='1' comment='notes'>
<assay id='1'></assay> 
<assay id='2'></assay> 
</sample> 
</job> 
</jobs>

 

1.10. Save results

Example of result:

<assays>
<assay uniqueid="1223"><result><parameter id="34" unit="mg" value="123"/><parameter id="35" unit="ml" value="456"/>
</result>
</assay>
</assays>

 

1.11. Invoices

 

1.12. Upload files ¡New!

 

1.13. Link sample to module ¡New!

 

1.14. Update sample status ¡New!

2. Authentication

One HEADER parameter is mandatory:

  • Key: X-LC-APP-Auth
  • Value: The token you can view/generate in LabCollector > Admin > Others > Setup > Web services API

3. Tool

You can try to retrieve data from or send data to the API with software apps such as Postman. See KB-Testing LabCollector REST API.

4. Screenshots

4.1. GET

 

4.2. POST