Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Create a tibble of all endpoints in the "fec.gov" API. #66

Open
jonthegeek opened this issue Feb 7, 2024 · 1 comment
Open

Task: Create a tibble of all endpoints in the "fec.gov" API. #66

jonthegeek opened this issue Feb 7, 2024 · 1 comment

Comments

@jonthegeek
Copy link
Owner

No description provided.

@jonthegeek jonthegeek changed the title Task: Fetch the full definition of the "fec.gov" API. Task: Create a tibble of all endpoints in the "fec.gov" API. Feb 19, 2024
@jonthegeek
Copy link
Owner Author

# Note: I'm using the dev version of tibblify, pak::pak("mgirlich/tibblify#191")
all_apis$fec.gov$versions$`1.0`$swaggerUrl
fec_paths <- tibblify::parse_openapi_spec(
  all_apis$fec.gov$versions$`1.0`$swaggerUrl
)
fec_paths

fec_paths$operations |> lengths() |> unique()
fec_paths$operations[[1]]
fec_paths$operations |> 
  purrr::map_int(nrow) |> 
  unique()

fec_operations <- fec_paths |> 
  tidyr::unnest_wider(operations)
fec_operations
fec_operations$parameters[[1]]
fec_operations$global_parameters[[1]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant