Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including adsk-fury-adapter-swagger with all npm packages installed. Try it out:

// Test out the Swagger adapter in Fury to convert Swagger 2.0 documents // into Refract elements. const source = ` swagger: '2.0' info: version: '1.0.0' title: Swagger Test description: Minimal Swagger test example host: api.example.com schemes: - https paths: /test: get: responses: 200: description: I am a description examples: 'application/json': status: ok `; const fury = require('fury'); fury.use(require('fury-adapter-swagger')); fury.parse({source}, (err, result) => { if (err) { console.log(err) } if (result) { // Print out the refract to make overview and copy/paste easy console.log(JSON.stringify(result.toRefract(), null, 2)); // Output the js objects so you can inspect each element console.log(result.toRefract()); } });

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

adsk-fury-adapter-swagger v0.15.1

Swagger 2.0 parser for Fury.js

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free