---
# System prepended metadata

title: CP-API-Server and Puzzle API

---

# CP-API-Server and Puzzle API

> KT to : Randolph
> > Date: 14-09-2022
> [CP-API](http://10.10.2.81:8088/puzzle/CP-API-Server)
> [Puzzle-API](http://10.10.2.81:8088/puzzle/puzzle-api-server)

CP and Puzzle Test Automation Suite is develop for the factory line workers to do autamtion Tests, Monitor the results and product quality, feed this data in internal MES system and Analyse the results with reports. System helped to test multiple OEM/ODM Products.

Programming laguage used for API development is, **NodeJS, MongoDB**

CP and Puzzle API flow diagram
![](https://i.imgur.com/Wg7w2qO.png)

Module Handle by Nayana: Design and develop all database queries and report queries for API. All report queries are included in **/database/qrealtimestatus.js** file

In **core/logoperations.js** need to include BI report queries. Function name is **updateBurnReport()**

Upload reposrt to MES is handled in **core/MESoperations.js** file