31 lines
725 B
C++
31 lines
725 B
C++
// This file generated by ngrestcg
|
|
// For more information, please visit: https://github.com/loentar/ngrest
|
|
|
|
#ifndef HUMIDITYSERVER_H
|
|
#define HUMIDITYSERVER_H
|
|
|
|
#include <ngrest/db/Table.h>
|
|
#include <ngrest/db/MySqlDb.h>
|
|
#include <ngrest/common/Service.h>
|
|
|
|
//! Dummy description for the service
|
|
/*! Some detailed description of the service */
|
|
// '*location' comment sets resource path for this service
|
|
// *location: humidityserver
|
|
class humidityserver: public ngrest::Service
|
|
{
|
|
public:
|
|
// *method: GET
|
|
// *location: /abshum?temperature={temperature}&humidity={humidity}
|
|
float absolutehumidity(float temperature, float humidity);
|
|
private:
|
|
//Format: Table, User, Password
|
|
|
|
};
|
|
|
|
|
|
#endif // HUMIDITYSERVER_H
|
|
|
|
|
|
|