Code Monkey home page Code Monkey logo

api-platform-raml-import's Introduction

api-platform-raml-import

Description

It loads a local folder to the API platform's API Designer, after clearing out everything already saved there. It recursively scans the local folder you are in and loads all files and subfolders to the API Designer file system in the API platform, for a specific API and API version.

WARNING: This will delete ALL current files and folders in the API Designer file system in the selected API and API version!

WARNING: This will upload ALL files and subfolders in the local folder to the API Designer, whether they're !included in the RAML or not. Take care to make sure you intend to have them there.

Usage

  1. Clone this project
  2. cd api-platform-raml-import
  3. npm install
  4. cd <THE FOLDER THAT HAS THE RAML FILES>
  5. node <PATH-TO-THIS-REPO>/app.js -u <Anypoint Platform user name> -p <Anypoint Platform password> -a <API id> -v <API version id>

You can retrieve the API and API version ids by looking at the URL of the API Designer for your API version: https://anypoint.mulesoft.com/apiplatform/popular/admin/#/dashboard/apis/<API id>/versions/<API version id>/designer

Requirements

Node.js (any recent version should suffice)

Full usage

Usage: node app.js

  -a                                                           API id
  -v                                                           API version id
      --api-platform=http://anypoint.mulesoft.com/apiplatform
      --auth-platform=http://anypoint.mulesoft.com/accounts
  -c, --confirmed                                              Do not ask for confirmation on upload
  -u, --username=username                                      username; if not specified we will use the APIPLATFORMUSER env variable
  -p, --password=password                                      password; if not specified we will use the APIPLATFORMPASS env variable
  -h, --help                                                   This help
  -r, --root-raml=rootFile.raml                                The name of the root RAML file, assumed to be at the root level folder.

api-platform-raml-import's People

Contributors

usarid avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kss160992

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.