Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Latest commit

 

History

History
105 lines (64 loc) · 2.13 KB

File metadata and controls

105 lines (64 loc) · 2.13 KB

ESP::PlansApi

All URIs are relative to https://api.evident.io

Method HTTP request Description
list GET /api/v2/plans.json_api Get a list of Plans
show GET /api/v2/plans/{id}.json_api Show a single Plan

list

PaginatedCollection list(opts)

Get a list of Plans

Example

# load the gem
require 'esp_sdk'

api_instance = ESP::PlansApi.new

opts = { 
  page: "{:number=>1,+:size=>20}" # String | Page Number and Page Size.  Number is the page number of the collection to return, size is the number of items to return per page.
}

begin
  #Get a list of Plans
  result = api_instance.list(opts)
  p result
rescue ESP::ApiError => e
  puts "Exception when calling PlansApi->list: #{e}"
end

Parameters

Name Type Description Notes
page String Page Number and Page Size. Number is the page number of the collection to return, size is the number of items to return per page. [optional] [default to {:number=>1,+:size=>20}]

Return type

PaginatedCollection

Authorization

See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

show

Plan show(id)

Show a single Plan

Example

# load the gem
require 'esp_sdk'

api_instance = ESP::PlansApi.new

id = 56 # Integer | Plan ID


begin
  #Show a single Plan
  result = api_instance.show(id)
  p result
rescue ESP::ApiError => e
  puts "Exception when calling PlansApi->show: #{e}"
end

Parameters

Name Type Description Notes
id Integer Plan ID

Return type

Plan

Authorization

See https://github.com/EvidentSecurity/esp-sdk-ruby#set-your-hmac-security-keys

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json