Code Monkey home page Code Monkey logo

meteor-swagger-client's Introduction

+DEPRECATED. This project is obsolete due to new features introduced in Meteor 1.3

warehouseman:meteor-swagger-client Build Status

Specify the addresses of a RESTful server, and of its Swagger spec, and then immediately interact with it.

Swagger is a powerful tool for creating REST APIs. With a comprehensive JSON specification both client and server interfaces can be generated automatically.

This Meteor package encapsulates the NodeJs module "swagger-client" adding a synchronous version of every asynchronous API method.

NOTICE : This is a beta stage project. Basic functionality is working, but I'll be adding/testing stuff like 3rd party authentication and webhooks soon.

Further information:

jsDoc generated documentation:

Evaluating prior to use (getting started):

Install tools

`curl https://install.meteor.com | /bin/sh` # Install Meteor

`sudo apt-get install -y nodejs-legacy npm` # In case deeper analysis is
`sudo npm install -g node-inspector`        # needed with `node-inspector`

`sudo npm install -g eslint babel-eslint`   # needed for meeting Meteor
`sudo npm install -g eslint-plugin-react`   # coding standards

`sudo npm install -g jsdoc`                 # to make HTML documentation
`sudo npm install -g jsdoc-to-markdown`     # to make Markdown docs

Environment variables (eg; in .bashrc) required to run Tinytests

* `export PET_STORE_SPEC="http://petstore.swagger.io/v2/swagger.json"`
* `export TRELLO_KEY="dc7bb1d947  ???  d0a71245c7"`
* `export TRELLO_USER_A="alphawarehouseman"`
* `export TRELLO_TOKEN_A="fcbb1c7cf9d33ae54   ???   239e7def3c6eb0d5b53dfbd"`
* `export TRELLO_A_WELCOME_BOARD="KEEnUvSY"`
* `export TRELLO_SPEC="https://raw.githubusercontent.com/warehouseman/trello-swagger-generator/master/TrelloAPI.json"`
* `# export TRELLO_SPEC="http://192.168.122.169:8000/TrelloAPI.json"`
* `# export MONGO_URL="mongodb://?:?@ds?.mongolab.com:?/meteor-node-trello"`
* `# export TRELLO_USER_B="bravowarehouseman"`
* `# export TRELLO_TOKEN_B="2b64529be4a2a67d4   ???   b3f5a668826a3be52defaca"`
* `# export TRELLO_USER_C="charliewarehouseman"`
* `# export TRELLO_TOKEN_C="3c183da0e7719301b   ???   07b504459c68b07e675ad9a"`

The command line to run the tests :

Minimal

meteor test-packages ../meteor-swagger-client

You ought to see . . . test results

With logging errors only

env DEBUG=wm:msc:err meteor test-packages ../meteor-swagger-client

With logging all

env DEBUG=wm:msc:* meteor test-packages ../meteor-swagger-client

With logging all and node-inspector

env NODE_OPTIONS='--debug' DEBUG=wm:msc:* meteor test-packages ../meteor-swagger-client

The command line to verify coding standards

eslint package.js 
eslint meteor-swagger-client.js 
eslint tests/meteor-swagger-client-tests.js

The command line to generate HTML documentation

jsdoc ./*.js -p -d ./jsdoc  --readme ./README.md

The command line to regenerate the Markdown documentation

jsdoc2md "./*.js" > documentation.md

meteor-swagger-client's People

Contributors

mhb-warehouseman avatar martinhbramwell avatar maxhodges avatar

Watchers

James Cloos avatar Thomas Craipeau avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.