add-a-comment

1.0.0 • Public • Published

add-a-comment

AddAComment - JavaScript client for add-a-comment API for adding a comment This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build date: 2016-04-25T06:43:30.457Z
  • Build package: class io.swagger.codegen.languages.JavascriptClientCodegen

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 add-a-comment --save

git

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

npm install YOUR_USERNAME/add-a-comment --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.

Getting Started

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

var AddAComment = require('add-a-comment');
 
var api = new AddAComment.DefaultApi()
 
var opts = { 
  'uniqueId': 56, // {Integer} Unique identifier for the row to fetch
  'comment': "comment_example" // {String} A comment to add
};
 
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.commentsPut(opts, callback);
 

Documentation for API Endpoints

All URIs are relative to http://rix31068:8080

Class Method HTTP request Description
AddAComment.DefaultApi commentsPut PUT /comments Updating table field for comment

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

Readme

Keywords

none

Package Sidebar

Install

npm i add-a-comment

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • slitvinova