Writing a middleware functions as a REST-API call

Question

I’m new to wordpress. My usual stack is MERN stack. Currently I joined with a wordpress project and their we want to write some middleware function inside the wordpress project. The process is like this (this is kind a like a REST-API);
– We have to expose POST request to outside;
– Once the request come we have to create some object and call another API

Is this possible?

0
, dkz 3 years 2020-04-06T08:51:02-05:00 0 Answers 78 views 0

Leave an answer

Browse
Browse