Generic REST interface - does it exist?

I am looking for a thin layer on top of processing HTTP requests that can easily route to different servers based on the verb uri / rest / actual service / .... This layer should also handle encoding in all the requested format (xml / json / returning binary data / etc.).

The most important point is to make it connectable to some backend - whether it is a message queue, task manager, an external process, or something completely different. They should be processed with a minimum shell for the necessary translation of messages.

Thus, in principle, it will be a custom query manager with some magic on top. Does something like this exist as a standalone application now?

Edit: I almost forgot - it would be great if it were written in PHP ... but if something else matches the description, I will look too.

+3
source share
2 answers

I don't know about PHP, but if Java and / or Python are acceptable parameters for you, you should take a look at RESTx , which was designed to create RESTful services quickly and easily. RESTx is fully open with a GPLv3 license.

, , . RESTx , .. RESTx Java Python. , API, , .. RESTx , , RESTful API. , . , -.

, POST , URI. URI, , . , - RESTful. HTTP-.

RESTx, , - , ( -).

+2

. Mongrel2 ( ), -. , 0MQ HTTP, .

: SQLite. Apache .

C, , PHP, , , .

Mongrel2, . nodejitsu node-http-proxy . . , , if.

StackOverflow, , -.

+1

Source: https://habr.com/ru/post/1758630/


All Articles