Answer the question
In order to leave comments, you need to log in
How to make rpc from rest api?
Hello! There was a following problem.
There is a rest api written in lumen. But there is one service that integrates api only through rpc.
That is, where there is just a route and action https://site.com/api?token=ddasdwe12&action=add
What can be done so as not to re-write api, that is, perhaps some kind of layer can be done, although of course I doubt it. In general, we need advice on how not to create a new api, but at the same time to have rpc. That is, perhaps even the option is suitable in which there will be no rest, but there will be rpc.
Answer the question
In order to leave comments, you need to log in
We create a new service and use it as a gateway. The new service transforms requests into rest.
redirecting from https://site.com/api-rpc/?token=ddasdwe12&action=add to https://site.com/api/add is not an option?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question