Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

REST API with JSON response

+3 votes
529 views
asked Sep 28, 2016 in Plugins by SaeedPooyanfar
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)

2 Answers

0 votes
answered Oct 2, 2016 by Ziad
Not sure how relevant this is to your needs but this repository has some code that provides a REST api to a JAVA client: https://github.com/m1ky91/q2a-rest-api
commented Oct 3, 2016 by SaeedPooyanfar
Is there any documentation for this ?
commented Oct 3, 2016 by Ziad
Doesn't look like it but you can always place a request for it in the issues section or contact the author through his email address.
0 votes
answered Jun 4 by arunanson

I've created a REST API that takes JSON and outputs JSON.

Just changed the status of the project to open in Gitlab.

https://gitlab.com/arunanson/question2answer-rest-api

I like getting thanked if it helped you :) 

commented Jun 9 by Armin Etemadi
This could be one of the most helpful contributions. Did create an android/ios app with your API? Can we see a sample?
...