MotionLib  1.0.0
SamBuCa motion library
Public Member Functions | Public Attributes | List of all members
ApiController Class Reference
Inheritance diagram for ApiController:
Inheritance graph
[legend]
Collaboration diagram for ApiController:
Collaboration graph
[legend]

Public Member Functions

 ApiController (OATPP_COMPONENT(std::shared_ptr< ObjectMapper >, objectMapper))
 
 ENDPOINT_INFO (root)
 
 ENDPOINT ("GET", "/", root)
 
 ENDPOINT_INFO (devicesTypes)
 
 ENDPOINT ("GET", "/devices/types", devicesTypes)
 
 ENDPOINT_INFO (devices)
 
auto deviceStore (m_deviceStore.lock())
 
 if (deviceStore)
 
return createDtoResponse (Status::CODE_200, ret)
 
 ENDPOINT ("PUT", "/axis/{id}/position", putPosition, PATH(String, id), BODY_DTO(Float64, position))
 
 if (deviceStore)
 
return createResponse (Status::CODE_500, "no deviceStore")
 

Public Attributes

oatpp::UnorderedSet< String > ret
 
std::weak_ptr< smc::internal::PlatformFactorym_platformFactory
 
std::weak_ptr< smc::internal::DeviceStorem_deviceStore
 

Detailed Description

Definition at line 46 of file ApiController.hpp.

Member Data Documentation

◆ ret

oatpp::UnorderedSet<String> ApiController::ret
Initial value:
{
oatpp::UnorderedSet<String>::createShared()}

Definition at line 109 of file ApiController.hpp.


The documentation for this class was generated from the following file: