Module Values_1.ResponseConfigurationSource

Configuration that defines how to parse JSON responses from REST API calls, including paths to result data and error information.

Sourcetype nonrec t = {
  1. resultPath : JsonPathString.t;
    (*

    The JSON path expression that identifies where the actual result data is located within the API response.

    *)
  2. errorPath : JsonPathString.t option;
    (*

    The JSON path expression that identifies where error information is located within API responses when requests fail.

    *)
}
Sourceval context_ : string
Sourceval make : ?errorPath:??? -> resultPath:JsonPathString.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of JsonPathString.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t