Skip to content

Commit 9c8a174

Browse files
authored
Merge pull request #130 from saucelabs/update/builds-v2-api
Add builds-v2 API
2 parents 502c43c + 5cfc250 commit 9c8a174

File tree

10 files changed

+1372
-213
lines changed

10 files changed

+1372
-213
lines changed

apis/builds.json

Lines changed: 610 additions & 0 deletions
Large diffs are not rendered by default.

apis/sauce.json

Lines changed: 54 additions & 125 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,16 @@
943943
"name":"username",
944944
"required":true,
945945
"type":"string"
946+
},
947+
"jobIds":{
948+
"description":"list of jobIds",
949+
"in":"query",
950+
"name":"id",
951+
"required":true,
952+
"items":{
953+
"type":"string"
954+
},
955+
"type":"array"
946956
}
947957
},
948958
"paths":{
@@ -1063,49 +1073,6 @@
10631073
]
10641074
}
10651075
},
1066-
"/v1.1/{username}/builds":{
1067-
"get":{
1068-
"operationId":"list_builds",
1069-
"parameters":[
1070-
{
1071-
"$ref":"#/parameters/username"
1072-
},
1073-
{
1074-
"$ref":"#/parameters/limit"
1075-
},
1076-
{
1077-
"$ref":"#/parameters/subaccounts"
1078-
}
1079-
],
1080-
"responses":{
1081-
"200":{
1082-
"description":"List of builds",
1083-
"schema":{
1084-
"items":{
1085-
"$ref":"#/definitions/Build"
1086-
},
1087-
"type":"array"
1088-
}
1089-
},
1090-
"404":{
1091-
"description":"User is not found",
1092-
"schema":{
1093-
"$ref":"#/definitions/Error"
1094-
}
1095-
},
1096-
"default":{
1097-
"description":"Unexpected error",
1098-
"schema":{
1099-
"$ref":"#/definitions/Error"
1100-
}
1101-
}
1102-
},
1103-
"summary":"Get all of a users builds",
1104-
"tags":[
1105-
"Build"
1106-
]
1107-
}
1108-
},
11091076
"/v1.1/{username}/jobs":{
11101077
"get":{
11111078
"operationId":"list_jobs",
@@ -1968,88 +1935,6 @@
19681935
]
19691936
}
19701937
},
1971-
"/v1/{username}/builds/{id}/failed-jobs":{
1972-
"get":{
1973-
"operationId":"list_build_failed_jobs",
1974-
"parameters":[
1975-
{
1976-
"$ref":"#/parameters/username"
1977-
},
1978-
{
1979-
"$ref":"#/parameters/id"
1980-
}
1981-
],
1982-
"responses":{
1983-
"200":{
1984-
"description":"List of jobs",
1985-
"schema":{
1986-
"items":{
1987-
"$ref":"#/definitions/Job"
1988-
},
1989-
"type":"array"
1990-
}
1991-
},
1992-
"404":{
1993-
"description":"User is not found",
1994-
"schema":{
1995-
"$ref":"#/definitions/Error"
1996-
}
1997-
},
1998-
"default":{
1999-
"description":"Unexpected error",
2000-
"schema":{
2001-
"$ref":"#/definitions/Error"
2002-
}
2003-
}
2004-
},
2005-
"summary":"Get all of the jobs associated with a build that have failed",
2006-
"tags":[
2007-
"Build",
2008-
"Job"
2009-
]
2010-
}
2011-
},
2012-
"/v1/builds/{id}/jobs":{
2013-
"get":{
2014-
"operationId":"list_build_jobs",
2015-
"parameters":[
2016-
{
2017-
"$ref":"#/parameters/id"
2018-
},
2019-
{
2020-
"$ref":"#/parameters/full"
2021-
}
2022-
],
2023-
"responses":{
2024-
"200":{
2025-
"description":"List of jobs",
2026-
"schema":{
2027-
"items":{
2028-
"$ref":"#/definitions/Job"
2029-
},
2030-
"type":"array"
2031-
}
2032-
},
2033-
"404":{
2034-
"description":"User is not found",
2035-
"schema":{
2036-
"$ref":"#/definitions/Error"
2037-
}
2038-
},
2039-
"default":{
2040-
"description":"Unexpected error",
2041-
"schema":{
2042-
"$ref":"#/definitions/Error"
2043-
}
2044-
}
2045-
},
2046-
"summary":"Get all of the jobs associated with a build",
2047-
"tags":[
2048-
"Build",
2049-
"Job"
2050-
]
2051-
}
2052-
},
20531938
"/v1/{username}/jobs/{id}":{
20541939
"get":{
20551940
"operationId":"get_job",
@@ -2348,6 +2233,50 @@
23482233
"Asset"
23492234
]
23502235
}
2236+
},
2237+
"/v1.1/jobs":{
2238+
"get":{
2239+
"operationId":"get_jobs_v1.1",
2240+
"stringifyOptions": {},
2241+
"parameters":[
2242+
{
2243+
"$ref":"#/parameters/jobIds"
2244+
}
2245+
],
2246+
"responses":{
2247+
"200":{
2248+
"description":"List of Jobs",
2249+
"schema":{
2250+
"properties":{
2251+
"jobs":{
2252+
"description":"list of jobs",
2253+
"items":{
2254+
"$ref":"#/definitions/Job"
2255+
},
2256+
"type":"array"
2257+
}
2258+
},
2259+
"type":"object"
2260+
}
2261+
},
2262+
"404":{
2263+
"description":"User is not found",
2264+
"schema":{
2265+
"$ref":"#/definitions/Error"
2266+
}
2267+
},
2268+
"default":{
2269+
"description":"Unexpected error",
2270+
"schema":{
2271+
"$ref":"#/definitions/Error"
2272+
}
2273+
}
2274+
},
2275+
"summary":"Get Job Information",
2276+
"tags":[
2277+
"Job"
2278+
]
2279+
}
23512280
}
23522281
}
23532282
}

0 commit comments

Comments
 (0)