parse_swagger_payload: Convert swagger response into named list

View source: R/get_api_filters.R

parse_swagger_payloadR Documentation

Convert swagger response into named list

Description

the response from the swagger endpoint include a large number of attributes and details that are not need for glfishr. this function takes the named list created from the json response and extracts the name and description of each GET parameter that can be used as filters.

Usage

parse_swagger_payload(payload)

Arguments

payload
  • list parsed from swagger api response

Details

Given the complexity of the payload, this function is not currently tested

TODO: add option to parse schemas from payload

Value

list

Author(s)

Adam Cottrill adam.cottrill@ontario.ca


AdamCottrill/glfishr documentation built on Aug. 9, 2024, 5:47 p.m.