Perfomatic:API: Difference between revisions

no edit summary
No edit summary
Line 1: Line 1:
The graph server API is a REST API with a JSON only response format.
The graph server API is a REST API with a JSON only response format.


===Using getdata.cgi?===
==Using getdata.cgi?==
If you are, things are going to change.
If you are, things are going to change.


Line 10: Line 10:
For example, let's assume you want test results for Tp3 tests. Querying graphs.mozilla.org/api/test gives you a list of tests by build and OS.  
For example, let's assume you want test results for Tp3 tests. Querying graphs.mozilla.org/api/test gives you a list of tests by build and OS.  


===Documented endpoints===
==Documented endpoints==
* '''/api/test''' - returns list of all tests per os per branch per machine.  
 
=== List tests ===
* http://graphs.mozilla.org/api/test
* Returns list of all tests run per os per branch per machine.  
** Example response:
** Example response:
  {
  {
Line 56: Line 59:
     ]
     ]
  }
  }
* '''/api/test?testId=''testid''&branchid=''branchid''&machine=''machineid''''' - returns information for a specific testId and branch and os
=== Get test ===
 
* http://graphs.mozilla.org/api/test?testId=TESTID&branchid=BRANCHID&machine=MACHINEID
* Returns information for a specific testId and branch and os
** Example response:
** Example response:
  {
  {
975

edits