The request path follows the format /main-api/{version}/{moduleName}/{entityName}/{methodName}.
{version} is the API version, currently v1.{moduleName}: module name.{entityName}: entity name.{methodName}: method name.For example, /main-api/v1/device/talk-server/updateById is a valid request path.
You can obtain authorization via the login API. For endpoints that require authentication, there are two ways to provide authentication information: add the Authorization value to the HTTP request header, or add the Authorization parameter to the URL. Example code:
The request structure must conform to the OpenAPI 3.0 specification.
status: Response status code; the default is 200. It gives a quick indication of the overall result of the request.
200: The request was executed successfully without any errors.400: Object validation failed: request parameters missing, over-length, or malformed; see the error field for details.401: Authentication failed: wrong credentials, invalid or expired token, or missing authentication information.403: Access denied: authenticated but lacking permission for the target resource.422: Business logic validation failed: the request is well-formed but a business condition is not met (e.g., target data not found); see the error field for details.500: Internal server error: the UI only shows "System Error"; details are recorded in server-side logs.1000: Message conversion failed: the request body cannot be parsed into the target object or the response body cannot be serialized (data format mismatch).1001: Controller parameter validation failed: form fields missing, over-length, or malformed; see the error field for details.error: Error description; optional, returned only when an exception occurs, so the caller can clearly understand the specific cause.timestamp: Response timestamp.path: Request path.extraData: Extended data, of type Map<String, Object>, used to store additional, non-standard data.data: Response data; optional, present only when there is data to return.