Skip to content

Commit

Permalink
Merge pull request #130 from saucelabs/update/builds-v2-api
Browse files Browse the repository at this point in the history
Add builds-v2 API
  • Loading branch information
farhan-sauce authored Nov 24, 2021
2 parents 502c43c + 5cfc250 commit 9c8a174
Show file tree
Hide file tree
Showing 10 changed files with 1,372 additions and 213 deletions.
610 changes: 610 additions & 0 deletions apis/builds.json

Large diffs are not rendered by default.

179 changes: 54 additions & 125 deletions apis/sauce.json
Original file line number Diff line number Diff line change
Expand Up @@ -943,6 +943,16 @@
"name":"username",
"required":true,
"type":"string"
},
"jobIds":{
"description":"list of jobIds",
"in":"query",
"name":"id",
"required":true,
"items":{
"type":"string"
},
"type":"array"
}
},
"paths":{
Expand Down Expand Up @@ -1063,49 +1073,6 @@
]
}
},
"/v1.1/{username}/builds":{
"get":{
"operationId":"list_builds",
"parameters":[
{
"$ref":"#/parameters/username"
},
{
"$ref":"#/parameters/limit"
},
{
"$ref":"#/parameters/subaccounts"
}
],
"responses":{
"200":{
"description":"List of builds",
"schema":{
"items":{
"$ref":"#/definitions/Build"
},
"type":"array"
}
},
"404":{
"description":"User is not found",
"schema":{
"$ref":"#/definitions/Error"
}
},
"default":{
"description":"Unexpected error",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"summary":"Get all of a users builds",
"tags":[
"Build"
]
}
},
"/v1.1/{username}/jobs":{
"get":{
"operationId":"list_jobs",
Expand Down Expand Up @@ -1968,88 +1935,6 @@
]
}
},
"/v1/{username}/builds/{id}/failed-jobs":{
"get":{
"operationId":"list_build_failed_jobs",
"parameters":[
{
"$ref":"#/parameters/username"
},
{
"$ref":"#/parameters/id"
}
],
"responses":{
"200":{
"description":"List of jobs",
"schema":{
"items":{
"$ref":"#/definitions/Job"
},
"type":"array"
}
},
"404":{
"description":"User is not found",
"schema":{
"$ref":"#/definitions/Error"
}
},
"default":{
"description":"Unexpected error",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"summary":"Get all of the jobs associated with a build that have failed",
"tags":[
"Build",
"Job"
]
}
},
"/v1/builds/{id}/jobs":{
"get":{
"operationId":"list_build_jobs",
"parameters":[
{
"$ref":"#/parameters/id"
},
{
"$ref":"#/parameters/full"
}
],
"responses":{
"200":{
"description":"List of jobs",
"schema":{
"items":{
"$ref":"#/definitions/Job"
},
"type":"array"
}
},
"404":{
"description":"User is not found",
"schema":{
"$ref":"#/definitions/Error"
}
},
"default":{
"description":"Unexpected error",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"summary":"Get all of the jobs associated with a build",
"tags":[
"Build",
"Job"
]
}
},
"/v1/{username}/jobs/{id}":{
"get":{
"operationId":"get_job",
Expand Down Expand Up @@ -2348,6 +2233,50 @@
"Asset"
]
}
},
"/v1.1/jobs":{
"get":{
"operationId":"get_jobs_v1.1",
"stringifyOptions": {},
"parameters":[
{
"$ref":"#/parameters/jobIds"
}
],
"responses":{
"200":{
"description":"List of Jobs",
"schema":{
"properties":{
"jobs":{
"description":"list of jobs",
"items":{
"$ref":"#/definitions/Job"
},
"type":"array"
}
},
"type":"object"
}
},
"404":{
"description":"User is not found",
"schema":{
"$ref":"#/definitions/Error"
}
},
"default":{
"description":"Unexpected error",
"schema":{
"$ref":"#/definitions/Error"
}
}
},
"summary":"Get Job Information",
"tags":[
"Job"
]
}
}
}
}
Loading

0 comments on commit 9c8a174

Please sign in to comment.