摘要 |
API VERSION TESTING BASED ON QUERY SCHEMA In one embodiment, a method includes receiving, from a third-party system, a data query requesting data items to be retrieved from hierarchical graphs associated with a social networking system, each of the hierarchical graphs comprising one or more nodes, the one or more nodes representing one or more data items, respectively, and each of the data items having a particular one of a plurality of data types, wherein the data query corresponds to a data structure of the specific data type of the requested data items, determining, for each of the requested data items, whether the third-party system is authorized to access the data item based on a privacy setting associated with the requested data item, retrieving, based on the determining, each of the data items the third-party system is authorized to access, and sending, to a third-party system in response to the data query, each of the authorized data items. 310 - RECORD THE SCHEMAS OF A FIRST VERSION OF AN API COMPARE THE SCHEMAS OF A 320 - SECOND VERSION OF THE API AGAINST THE SCHEMAS OF THE FIRST VERSION OF THE API 410 ~GENERATE A FIRST QUERY FOR A DATA STRUCTURE OF A SPECIFIC 420 RETRIEVE THE DATA STRUCTURE FROM THE GRAPHS GENERATE A SECOND QUERY FOR 430 DATA ITEMS WITH THE SPECIFIC 440 RETRIEVE THE DATA ITEMS FROM |