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

Public Member Functions

 Client (const oatpp::network::Address &address)
 
 API_CALL ("GET", "devices", getDevices)
 
 API_CALL ("GET", "devices/types", getDevicesTypes)
 
 API_CALL ("GET", "api-docs/ui", getSwaggerUi)
 
 API_CALL ("PUT", "axis/{id}/position", putAxisPosition, BODY_DTO(Float64, position))
 
 API_CALL ("POST", "axis/{id}/position", postAxisPosition)
 
 API_CALL ("GET", "alias", getAliasList)
 
 API_CALL ("GET", "alias/{id}", getAlias)
 
 API_CALL ("PUT", "alias/{id}", putAlias, BODY_DTO(String, target))
 
 API_CALL ("DELETE", "alias/{id}", deleteAlias)
 
std::shared_ptr< Response > put (const std::string &path, const oatpp::Void &body, const std::unordered_map< oatpp::String, oatpp::String > &pathParams=std::unordered_map< oatpp::String, oatpp::String >{})
 
std::shared_ptr< Response > post (const std::string &path, const oatpp::Void &body, const std::unordered_map< oatpp::String, oatpp::String > &pathParams=std::unordered_map< oatpp::String, oatpp::String >{})
 
std::shared_ptr< Response > get (const std::string &path, const std::unordered_map< oatpp::String, oatpp::String > &queryParams=std::unordered_map< oatpp::String, oatpp::String >{}, const std::unordered_map< oatpp::String, oatpp::String > &pathParams=std::unordered_map< oatpp::String, oatpp::String >{})
 
std::shared_ptr< Response > del (const std::string &path, const std::unordered_map< oatpp::String, oatpp::String > &queryParams=std::unordered_map< oatpp::String, oatpp::String >{}, const std::unordered_map< oatpp::String, oatpp::String > &pathParams=std::unordered_map< oatpp::String, oatpp::String >{})
 
template<typename T >
readBody (const std::shared_ptr< Response > &res)
 
std::shared_ptr< oatpp::data::mapping::ObjectMapper > & getObjectMapper ()
 

Static Public Member Functions

static std::shared_ptr< ClientcreateShared (const oatpp::network::Address &address)
 

Protected Attributes

Environment::Shared m_env {Environment::instance()}
 

Detailed Description

Definition at line 40 of file Client.hpp.


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