filtered endpoints for build Data

This commit is contained in:
Ayush Kumar Sinha 2019-07-05 09:55:19 +05:30
parent 6848413527
commit d7ba9701de

9
app.js
View File

@ -126,11 +126,14 @@ app.get('/api/pulls', (req, res) => {
});
//------- BUILD-SET END-POINT -------
//https://build.reactos.org/api/v2/buildsets?field=bsid&field=sourcestamps&order=-bsid
//https://build.reactos.org/api/v2/buildsets?field=bsid&field=sourcestamps&order=-bsid&limit=50
//https://build.reactos.org/api/v2/buildsets?field=bsid&field=sourcestamps&order=-bsid&offset=0&limit=50
//increasing the offset by 50 on next page request!!!
function buildSetReq() {
var buildSets = {
uri:
'https://build.reactos.org/api/v2/buildsets?field=bsid&field=sourcestamps',
'https://build.reactos.org/api/v2/buildsets?field=bsid&field=sourcestamps&order=-bsid&offset=0&limit=50',
headers: {
'User-Agent': 'Request-Promise'
},
@ -152,6 +155,8 @@ app.get('/api/buildsets', (req, res) => {
//------- BUILD-REQUEST END-POINT -------
//https://build.reactos.org/api/v2/buildrequests?field=buildsetid&field=buildrequestid&buildsetid=1
function buildReq() {
var buildReq = {
uri: