Hi,
I want to write a REST API by developing a plugin,
At first step i want get current route and ( if route matched to my route list [that it can be an array] ) send suitable response to client ..
Can anyone tell how can i do this? (a code example can be a good answer)