Skip to content

Latest commit

 

History

History
138 lines (82 loc) · 7.08 KB

File metadata and controls

138 lines (82 loc) · 7.08 KB

Requests

Overview

REST APIs for retrieving request information

Available Operations

generate_request_postman_collection

Generates a Postman collection for a particular request. Allowing it to be replayed with the same inputs that were captured by the SDK.

Example Usage

require 'speakeasy_client_sdk_ruby'


s = ::SpeakeasyClientSDK::SDK.new
s.config_security(
  ::SpeakeasyClientSDK::Shared::Security.new(
    api_key: "<YOUR_API_KEY_HERE>",
  )
)


req = ::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionRequest.new(
  request_id: "<value>",
)
    
res = s.requests.generate_request_postman_collection(req)

if ! res.postman_collection.nil?
  # handle response
end

Parameters

Parameter Type Required Description
request ::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionRequest ✔️ The request object to use for the request.

Response

T.nilable(::SpeakeasyClientSDK::Operations::GenerateRequestPostmanCollectionResponse)

get_request_from_event_log

Get information about a particular request.

Example Usage

require 'speakeasy_client_sdk_ruby'


s = ::SpeakeasyClientSDK::SDK.new
s.config_security(
  ::SpeakeasyClientSDK::Shared::Security.new(
    api_key: "<YOUR_API_KEY_HERE>",
  )
)


req = ::SpeakeasyClientSDK::Operations::GetRequestFromEventLogRequest.new(
  request_id: "<value>",
)
    
res = s.requests.get_request_from_event_log(req)

if ! res.unbounded_request.nil?
  # handle response
end

Parameters

Parameter Type Required Description
request ::SpeakeasyClientSDK::Operations::GetRequestFromEventLogRequest ✔️ The request object to use for the request.

Response

T.nilable(::SpeakeasyClientSDK::Operations::GetRequestFromEventLogResponse)

query_event_log

Supports retrieving a list of request captured by the SDK for this workspace. Allows the filtering of requests on a number of criteria such as ApiID, VersionID, Path, Method, etc.

Example Usage

require 'speakeasy_client_sdk_ruby'


s = ::SpeakeasyClientSDK::SDK.new
s.config_security(
  ::SpeakeasyClientSDK::Shared::Security.new(
    api_key: "<YOUR_API_KEY_HERE>",
  )
)


req = ::SpeakeasyClientSDK::Operations::QueryEventLogRequest.new()
    
res = s.requests.query_event_log(req)

if ! res.bounded_requests.nil?
  # handle response
end

Parameters

Parameter Type Required Description
request ::SpeakeasyClientSDK::Operations::QueryEventLogRequest ✔️ The request object to use for the request.

Response

T.nilable(::SpeakeasyClientSDK::Operations::QueryEventLogResponse)