diff --git a/Controllers/PointsController.cs b/Controllers/PointsController.cs
index bb0432b..28e0078 100644
--- a/Controllers/PointsController.cs
+++ b/Controllers/PointsController.cs
@@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Mvc;
namespace API_SequentMicrosystems.Controllers
{
+ [Tags("Internal Saving Points (Recommended only use \"Actual\" endpoint for read all data at once. Saving points is not recomended)")]
[Route("Points")]
[ApiController]
public class PointsController : ControllerBase
@@ -60,6 +61,17 @@ namespace API_SequentMicrosystems.Controllers
return _PointsService.GetPoints(limit, pm);
}
+ //GET api/Points/Actual
+ ///
+ /// Get Actual Point
+ ///
+ ///
+ [HttpGet("Actual")]
+ public PointsModel GetActual()
+ {
+ return _PointsService.GetPoint();
+ }
+
// GET api//5
///
/// Read points from first to specified number
diff --git a/Controllers/RTDDataAcquisitionController.cs b/Controllers/RTDDataAcquisitionController.cs
index 28fc507..32dd97a 100644
--- a/Controllers/RTDDataAcquisitionController.cs
+++ b/Controllers/RTDDataAcquisitionController.cs
@@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Mvc;
namespace API_SequentMicrosystems.Controllers
{
+ [Tags("RTD-8 Temperature Module")]
[Route("RTDDA")]
[ApiController]
public class RTDDataAcquisitionController : ControllerBase
diff --git a/Services/PointsService.cs b/Services/PointsService.cs
index 51859ea..01232a2 100644
--- a/Services/PointsService.cs
+++ b/Services/PointsService.cs
@@ -107,15 +107,24 @@ namespace API_SequentMicrosystems.Services
}
///
- /// Save data/status point
+ /// Create actual point object
///
- public void SavePoint()
+ ///
+ public PointsModel GetPoint()
{
PointsModel pm = new PointsModel(); //initialize point object
pm.Time = DateTime.Now; //set time of point created
pm.RTDDA = _RTDDAService.ReadAllCard(); //save RTD data to point
- _points.Add(pm); //add point to list
+ return pm;
+ }
+
+ ///
+ /// Save data/status point
+ ///
+ public void SavePoint()
+ {
+ _points.Add(GetPoint()); //add point to list
_SavePoints = true;
}
diff --git a/Services/RTDDataAcquisitionService.cs b/Services/RTDDataAcquisitionService.cs
index 75c95d6..e7e2ba5 100644
--- a/Services/RTDDataAcquisitionService.cs
+++ b/Services/RTDDataAcquisitionService.cs
@@ -89,7 +89,7 @@ namespace API_SequentMicrosystems.Services
{
try
{
- float[] data = _stackLevelReader.GetStack(stack); //return data from specified card
+ float[] data = _stackLevelReader.GetStack(stack); //return data from specified card and ted measure precision
for (byte i = 0;i < 8; i++)
{