eduardo.junqueira Posted June 20, 2016 Posted June 20, 2016 Exposing methods Restfull the same unigui server , what better way? it's possible ? 1 Quote
Marlon Nardi Posted June 20, 2016 Posted June 20, 2016 isso seria ótimo! também queria... that would be great! also I wanted ... 1 Quote
Skepsis IT Posted June 20, 2016 Posted June 20, 2016 Great idea! For now you can use TMS XData and unigui as a frontend... Quote
Hassan Posted June 16, 2017 Posted June 16, 2017 I have the same above request and need to support RESTful requests. To avoid asking client to install two services on two different ports, I need to merge a RESTful service with Unigui. I know there is a HTTPCommand on Server module. Answering requests in this function will block other requests as the process can be time consuming. Creating threads and managing them can be one way to handle it, but will need good effort. Does/will Unigui support handling Rest? Quote
GerhardV Posted June 18, 2017 Posted June 18, 2017 One solution is to build a router/gateway (or use NGINX) which redirects the traffic to the correct service based on a regular expression and the resource path, which mean that you have only one port open to the public and the services each have their own internal port. It also adds another level of security as well as load balancing. https://www.nginx.com UniGUI also uses REST although might it be only one resource namely "/event". Quote
Administrators Farshad Mohajeri Posted June 18, 2017 Administrators Posted June 18, 2017 You can already do this by handling OnHTTPCommand method of UniServerModule. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.