Endpoints for Raspberry Pi (Endrpi) is a web API server for the Raspberry Pi that provides basic statuses and GPIO controls through a collection of HTTP endpoints.
Why do you think that https://github.com/vitormhenrique/OctoPrint-Enclosure is a good alternative to endrpi-server