I've been reading up on REST web services and would like to implement a rest service of my own.
All the examples on the internet that I've seen relate to database access. But what I want to achieve has nothing to do with accessing a database.
I want to create a REST service that allows a large string and various other parameters to be passed into a resource and it return a xml result set back. Nothing is created or updated into a database, nothing is retrieved from a database. Its passing data to a complex processing procedure to then return the results.
My problem lies with what VERB do I use?
I feel I should use the GET verb to stay in line with best practices but the query could potentially be very large sometimes and passing this on the querystring is in practical.
This leaves me with POST. This seems to fit what I want to acheive but I think it breaks away from REST best practices again!
Is REST only to be used when wanting to interact with a database?
Should I scrap the idea of using rest and create a SOAP service?
UPDATE my REST service is to analyse articles and return keyword reports for the given article. Given this then the resource is 'keywords', a POST to this will return a full report. I was thinking then of a second uri of keywords/recommended, a POST to this will return a few recommended key phrases of the submitted article. Does this comply with REST?