Please let me share μcuREST – an application server for constrained platforms.
It is a C++11 library for implementing REST services on constrained platforms, such as bare metal applications on low-end MCUs.
General ideas are expressed on this page, sources are available on GitHub.
A prebuild example for NodeMCU v3 board is also available for downloading
Here are some screenshots, implemented by the example:
Please note, building a C++ application for ESP8266 requires some workarounds, such as stubs for missing c++ lib entries, and an adjusted ld script. Please examine example's Makefile for details.