I am writing a small application that does only one thing: it takes some user-provided data, does some analysis on it and returns a “tag” for that data. I think that the client should either GET, or POSTtheir request /getTag, to receive a response.
Nothing is stored on the server when the client does this, so it is strange to use POST. However, there is no single URI for analysis, so using a GET seems weird because it will return different things depending on what data is provided.
What is the best way to represent this function with REST?
source
share