loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
464 stars 93 forks source link

Can we use ngrest like this? #73

Closed audnex closed 3 years ago

audnex commented 3 years ago

Linux Embedded Arm processor (i.Mx6).With embedded web server (Nginx) running as local web server.

We want to add REST API function to our existing C and C++ code that runs on our processor so that the API can set and get the current status of parameters.

Is this supported?

From your doc I'm confused by how ngrest works through Nginx and how we get and set status with c++ or c program.

Help appreciated!

loentar commented 3 years ago

You have to wrap your code to the service and deploy it to nginx. Depending on your code logic you may need IPC because nginx may start the multiple instances (processes and threads) of the service.

audnex commented 3 years ago

ok thanks.