@Override
    public Request buildRequest(String baseUrl) {
        // Build a complete URL
        String path = buildPathParams(getPath(), getPathParams());
        String url = baseUrl + path;

        // Add query parameters
        if (!getQueryParams().isEmpty()) {
            String queryString = buildQueryString(getQueryParams());
            url += "?" + queryString;
        }

        // Build Request Builder
        Request.Builder builder = new Request.Builder().url(url);

        // Set requests based on HTTP methods
        switch (getMethod()) {
            case GET:
                builder.get();
                break;
            case POST:
                builder.post(getRequestBody());
                break;
            case PATCH:
                builder.patch(getRequestBody());
                break;
            case PUT:
                builder.put(getRequestBody());
                break;
            case DELETE:
                if (!requestBodyParams.isEmpty()) {
                    builder.delete(getRequestBody());
                } else {
                    builder.delete();
                }
                break;
            default:
                throw new IllegalArgumentException("Unsupported HTTP method: " + getMethod());
        }
        return builder.build();
    }
Create JSON request body
@return RequestBody Object
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/airflow/api/BaseAirflowApi.java