MCPcopy Create free account
hub / github.com/FDA/openfda / test_api_keys

Function test_api_keys

scripts/generate_fields_yaml.py:236–273  ·  view source on GitHub ↗

Utility that tests an API to make sure that all fields in the mapping file are queryable via the API. It will spit a list of non 200 keys to console. Please note, it is possible to get false positives, since the API responds with 404s when there is no data in the response.

(host, mapping, endpoint)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

get_exact_fieldsFunction · 0.85
get_mapping_fieldsFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected