Settings

Theme

APIPass -Interest in a Node.js Rest Client for Most Commonly Used APIs?

1 points by mx2323 6 years ago · 0 comments · 2 min read

Reader

hey everyone one of the things that annoys me about REST APIs is the integration of them. everyone integrates with the same APIs over and over again, rediscovering what the endpoints are, how the parameters work, guessing what the return fields are, writing the pagination code, figuring out how to get a token, etc. even amongst the most popular APIs, openAPI adherence is poor.

I'm thinking about starting an open-source project around building a REST client in Node.JS / TypeScript that has wrappers for the most popular REST APIs. It would come with types and documentation so you could see the parameters in Typescript.

I think, especially if you work at a SaaS and you need to build a lot of integrations with popular 3rd parties fast - it could be useful.

The great thing would be that you could work with a lot of APIs quickly, with the same syntax, without having to pause and go look up documentation, etc.

To start, the RestClient would be super slim, maybe only including some of the most common endpoints of some of the most common APIs - but let's be real, the Slack and JIRA APIs have hundreds of endpoints, and we all only use one or two of them.

Here's my list of the first ten API calls that I might consider putting in the REST Client

========

slack postMessageToChannel

jira get all issues in project

googleSheets readData, writeData, listSheets

salesforce getAllOpportunities, getAllContacts

twilio sendTextMessage, doPhoneCall

gitlab getLatestCommits

github getLatestCommits

gmail sendEmail

twitter get latest tweets for user ========

The syntax would be, at a high level -

apiPass.slack().postMessage({message:'foo bar}) OR apiPass.jira().getIssues({'projectID':foo}})

thoughts?

if you are interested - LMK by leaving a comment.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection