Accelerating API delivery and quality through standards and collaboration, built on OpenAPI.
Emit new event for every created version of a specific API. See the docs here
Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node docs to learn more.
The SwaggerHub API offers capabilities to streamline working with your Swagger (OpenAPI) definitions within SwaggerHub. On Pipedream, you can automate interactions with the SwaggerHub API to keep APIs in sync, manage your API versions, and integrate your API design workflow with other tools and services. Leverage Pipedream's serverless platform to create, update, and share your SwaggerHub API definitions across different environments or teams efficiently.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
swaggerhub: {
type: "app",
app: "swaggerhub",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.swaggerhub.com/user-management/v1/orgs/{your_org_name}/members`,
headers: {
"Authorization": `${this.swaggerhub.$auth.api_key}`,
},
params: {
limit: `10`,
},
})
},
})
Develop, run and deploy your Node.js code in Pipedream workflows, using it between no-code steps, with connected accounts, or integrate Data Stores and File Stores.
This includes installing NPM packages, within your code without having to manage a package.json
file or running npm install
.
Below is an example of installing the axios
package in a Pipedream Node.js code step. Pipedream imports the axios
package, performs the API request, and shares the response with subsequent workflow steps:
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
async run({ steps, $ }) {
// Return data to use it in future steps
return steps.trigger.event
},
})