Skip to main content

HTTP methods and processors

Problem

API v1 is based on POST queries. However, according to many resources, using POST for queries in RESTful API is not a good practice:

Functional design

Using different HTTP methods GET and POST allows to distinguish between Query and Command processors clearly:

HTTP MethodProcessor
GETQuery Processor
POST, PATCH, DELETECommand Processor

Note: according to RESTful API design, queries should not change the state of the system. Current QueryFunction design allows it to execute commands through HTTP bus.