peterjmartinson/PengoBot

POST vs. GET

Closed this issue · 2 comments

Slack is not modifying the database - no changes are left on the server side of this app. By the definition of a RESTful API, the request should therefore be a GET and not a POST. The Slack slash command configuration should be changed from POST to GET.

The gut says GET, as do articles on REST. Let us use GET routes, both in app and in Slack configuration, until there is clear reason otherwise.

This was wrong reasoning. Slack passes command arguments via POST requests. GET will only work if the command takes no arguments.