BF Transitions API
Irena Bojanova, Inventor/Creator, PI & Lead, NIST Bugs Framework (BF), 2014 – ~~~
//Exclusive Rights Only//
The BF Transitions API generates datasets of Meaningful consequence↷cause
Propagations between weaknesses of the same BF Class Type, but with different corresponding BF Conseqeunce and BF Cause values
BF Weakness Propagations → Key required:
https://samate.nist.gov/services/BF/BFFormalLanguage.xml/BFTransitions?key=YOUR_KEY
https://samate.nist.gov/services/BF/BFFormalLanguage.json/BFTransitions?key=YOUR_KEYProgramatically → Key required:
C#
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("BFFormalLanguage.xml/BFTransitions/api"); responseXML.EnsureSuccessStatusCode(); var resultXML = await responseXML.Content.ReadAsStringAsync(); //result in JSON var responseJSON = await client.GetAsync("BFFormalLanguage.json/BFTransitions/api"); responseJSON.EnsureSuccessStatusCode(); var resulJSON = await responseJSON.Content.ReadAsStringAsync();
Python
//to be added//
BF CITATION: