1.79.0 • Published 3 years ago

jgreenepack1 v1.79.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
3 years ago

jgreenepack1

Jgreenepack1 - JavaScript client for jgreenepack1 The Pet Store V1 API generates pets for your convenient access. Generated by SDKeasy.

  • API version: 1.79.0
  • Package version: 1.79.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit https://cheeser.co

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install jgreenepack1 --save

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/jgreenepack1 then install it via:

    npm install YOUR_USERNAME/jgreenepack1 --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var Jgreenepack1 = require('jgreenepack1');

var api = new Jgreenepack1.PetsApi()
api.createPets().then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to http://petstore.swagger.io/v1

ClassMethodHTTP requestDescription
Jgreenepack1.PetsApicreatePetsPOST /petsCreate a pet
Jgreenepack1.PetsApilistPetsGET /petsList all pets
Jgreenepack1.PetsApishowPetByIdGET /pets/{petId}Info for a specific pet

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.