US 12,293,199 B2
Automated user interface generation for an application programming interface (API)
Janos Bonic, Vienna (AT); Sanja Bonic, Vienna (AT); Sandro Bonazzola, Milan (IT); and Dustin Louis Black, Grasbrunn (DE)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by Red Hat, Inc., Raleigh, NC (US)
Filed on Dec. 13, 2022, as Appl. No. 18/080,619.
Prior Publication US 2024/0192970 A1, Jun. 13, 2024
Int. Cl. G06F 3/048 (2013.01); G06F 3/04842 (2022.01); G06F 9/451 (2018.01)
CPC G06F 9/451 (2018.02) [G06F 3/04842 (2013.01)] 14 Claims
OG exemplary drawing
 
1. A method comprising:
receiving, from an application programming interface (API), a file containing API data;
applying, by a processing device, a set of pattern matching rules to the API data to identify graphical user interface components to be used to display the API data;
responsive to determining that a same segment of the API data fits a pattern associated with two different types of graphical user interface component, generating a user interface comprising first and second graphical user interface components that display the same segment of the API data using different visual formats;
responsive to determining that a second segment of the API data does not match with any of the pattern matching rules, displaying the second segment of the API data within the user interface as plain text that represents the API data in raw form; and
responsive to determining that a third segment of the API data is nested within a hierarchical data structure of the file, nesting a third graphical user interface component within a graphical container of the user interface that visually reflects the hierarchical data structure of the file, wherein the graphical container comprises a visual label comprising text extracted from the API data at a higher level of the hierarchical data structure of the file compared to the third segment of the API data used to generate the third graphical user interface component.