D
D
Dmitry Tarasov2021-08-16 15:50:56
PHP
Dmitry Tarasov, 2021-08-16 15:50:56

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

2 answer(s)
I
Ivan Shumov, 2021-08-16
@fast-je

We create a new service and use it as a gateway. The new service transforms requests into rest.

A
Anton Shamanov, 2021-08-16
@SilenceOfWinter

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 question

Ask a Question

731 491 924 answers to any question