I have an api that i can access via : http://example.com/api.php?action=method
with method corresponding to a request.
For instance to get a location of a site from the db you do a GET to http://example.com/api.php?action=getlocation&site=107.
So almost every request works on the same principle. I don’t see how to implement this with RAML using resources.
The only way i found so far is to put http://example.com as baseUri and api.php?acton=getlocation as a ressource.
is there a better way to do this?
Thank you in advance