BFCWEs API
Irena Bojanova, Inventor/Creator, PI & Lead, NIST Bugs Framework (BF), 2014 – ~~~
//Exclusive Rights Only//
The BFCWEs API generates datasets of BFCWE Specifications as <cause, operation>→consequence
BF Weaknesses. Depending on the level of abstraction, some CWEs may be covered by more than one BF Weakness Triple.
BFCWE Specifications → Key required:
https://samate.nist.gov/services/BF/BFCWE.xml?key=YOUR_KEY
https://samate.nist.gov/services/BF/BFCWE.json?key=YOUR_KEYC#
HttpClient client = new HttpClient() { BaseAddress = new Uri("https://samate.nist.gov/services/BF") }; //replace YOUR_USER_NAME and YOUR_KEY client.DefaultRequestHeaders.Add("user", YOUR_USER_NAME); client.DefaultRequestHeaders.Add("key", YOUR_KEY); //result in XML var responseXML = await client.GetAsync("BFCWE.xml/api"); responseXML.EnsureSuccessStatusCode(); var resultXML = await responseXML.Content.ReadAsStringAsync(); //result in JSON var responseJSON = await client.GetAsync("BFCWE.xml.json/api"); responseJSON.EnsureSuccessStatusCode(); var resulJSON = await responseJSON.Content.ReadAsStringAsync();
Python
//to be added//
BF CITATION: