The real value creation here would be turning a GET API endpoint into a webhook service. So your service would monitor the service and push updates on changes / diffs based on certain time interval.
Build that and people will flock to you.
Build that and people will flock to you.
Here's an example query that will poll an npm package and send a payload whenever the latest version changes.
https://www.onegraph.com/graphiql?shortenedId=FYH1SY
subscription PollNpmPackage {
poll(
webhookUrl: "https://example.com"
onlyTriggerWhenPayloadChanged: true
schedule: { every: { minutes: 60 } }
) {
query {
npm {
package(name: "graphql") {
distTags {
latest {
versionString
}
}
}
}
}
}
}
This is just an illustrative example. I used NPM because it doesn't require any authorization. We also support proper subscriptions for NPM that listen to their couchdb change feed.There are many industries where push APIs haven't caught up and are much needed.
Let me know if I can help akshay@terminal49.com