Documentation
This document outlines the design of a REST API for QRMS, supporting both synchronous and asynchronous commands. From the user's perspective, all command requests are treated as asynchronous. Each operation can be executed using two endpoints: [POST] /command to initiate the request, and [GET] /command/{sequenceNumber} to retrieve the result.
In addition to the generic [POST] /command endpoint, the API also provides specific endpoints in the format [POST] /command/<commandType>. These serve the same functional purpose but offer improved documentation, including example request bodies and a clearer specification of required and optional parameters.