0.1.0 • Published 6 years ago

heathcliff-js v0.1.0

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

heathcliff

Heathcliff - JavaScript client for heathcliff A RESTful API for terrain and propagation tools. This SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: v1
  • Build package: 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 heathcliff --save
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

Finally, switch to the directory you want to use your heathcliff from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR> 

You should now be able to require('heathcliff') in javascript files from the directory you ran the last command above from.

git

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

    npm install GIT_USER_ID/GIT_REPO_ID --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, that's to say your javascript file where you actually use this library):

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 Heathcliff = require('heathcliff');

var defaultClient = Heathcliff.ApiClient.instance;

// Configure API key authorization: token
var token = defaultClient.authentications['token'];
token.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//token.apiKeyPrefix['Token'] = "Token"

var api = new Heathcliff.V1Api()

var data = new Heathcliff.AntennaPatternFile(); // {AntennaPatternFile} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.v1AntennasFilesCreate(data, callback);

Documentation for API Endpoints

All URIs are relative to https://localhost/api

ClassMethodHTTP requestDescription
Heathcliff.V1Apiv1AntennasFilesCreatePOST /v1/antennas/files/
Heathcliff.V1Apiv1AntennasFilesDeleteDELETE /v1/antennas/files/{id}/
Heathcliff.V1Apiv1AntennasFilesListGET /v1/antennas/files/
Heathcliff.V1Apiv1AntennasFilesPartialUpdatePATCH /v1/antennas/files/{id}/
Heathcliff.V1Apiv1AntennasFilesReadGET /v1/antennas/files/{id}/
Heathcliff.V1Apiv1AntennasFilesUpdatePUT /v1/antennas/files/{id}/
Heathcliff.V1Apiv1AntennasPatternsCreatePOST /v1/antennas/patterns/
Heathcliff.V1Apiv1AntennasPatternsDeleteDELETE /v1/antennas/patterns/{id}/
Heathcliff.V1Apiv1AntennasPatternsListGET /v1/antennas/patterns/
Heathcliff.V1Apiv1AntennasPatternsPartialUpdatePATCH /v1/antennas/patterns/{id}/
Heathcliff.V1Apiv1AntennasPatternsReadGET /v1/antennas/patterns/{id}/
Heathcliff.V1Apiv1AntennasPatternsUpdatePUT /v1/antennas/patterns/{id}/
Heathcliff.V1Apiv1CollectionsCreatePOST /v1/collections/
Heathcliff.V1Apiv1CollectionsDeleteDELETE /v1/collections/{id}/
Heathcliff.V1Apiv1CollectionsListGET /v1/collections/
Heathcliff.V1Apiv1CollectionsPartialUpdatePATCH /v1/collections/{id}/
Heathcliff.V1Apiv1CollectionsReadGET /v1/collections/{id}/
Heathcliff.V1Apiv1CollectionsUpdatePUT /v1/collections/{id}/
Heathcliff.V1Apiv1FeaturesPointCreatePOST /v1/features/point/
Heathcliff.V1Apiv1FeaturesPointDeleteDELETE /v1/features/point/{id}/
Heathcliff.V1Apiv1FeaturesPointListGET /v1/features/point/
Heathcliff.V1Apiv1FeaturesPointPartialUpdatePATCH /v1/features/point/{id}/
Heathcliff.V1Apiv1FeaturesPointReadGET /v1/features/point/{id}/
Heathcliff.V1Apiv1FeaturesPointUpdatePUT /v1/features/point/{id}/
Heathcliff.V1Apiv1FeaturesProfileCreatePOST /v1/features/profile/
Heathcliff.V1Apiv1FeaturesProfileDeleteDELETE /v1/features/profile/{id}/
Heathcliff.V1Apiv1FeaturesProfileListGET /v1/features/profile/
Heathcliff.V1Apiv1FeaturesProfilePartialUpdatePATCH /v1/features/profile/{id}/
Heathcliff.V1Apiv1FeaturesProfileReadGET /v1/features/profile/{id}/
Heathcliff.V1Apiv1FeaturesProfileUpdatePUT /v1/features/profile/{id}/
Heathcliff.V1Apiv1FilesCreatePOST /v1/files/
Heathcliff.V1Apiv1FilesDeleteDELETE /v1/files/{id}/
Heathcliff.V1Apiv1FilesListGET /v1/files/
Heathcliff.V1Apiv1FilesPartialUpdatePATCH /v1/files/{id}/
Heathcliff.V1Apiv1FilesReadGET /v1/files/{id}/
Heathcliff.V1Apiv1FilesUpdatePUT /v1/files/{id}/
Heathcliff.V1Apiv1JobsCreatePOST /v1/jobs/
Heathcliff.V1Apiv1JobsDeleteDELETE /v1/jobs/{id}/
Heathcliff.V1Apiv1JobsListGET /v1/jobs/
Heathcliff.V1Apiv1JobsPartialUpdatePATCH /v1/jobs/{id}/
Heathcliff.V1Apiv1JobsReadGET /v1/jobs/{id}/
Heathcliff.V1Apiv1JobsUpdatePUT /v1/jobs/{id}/
Heathcliff.V1Apiv1ListGET /v1/
Heathcliff.V1Apiv1PropagationListGET /v1/propagation/
Heathcliff.V1Apiv1PropagationP526knifeedgeCreatePOST /v1/propagation/p526knifeedge/
Heathcliff.V1Apiv1PropagationP526knifeedgeDeleteDELETE /v1/propagation/p526knifeedge/{id}/
Heathcliff.V1Apiv1PropagationP526knifeedgeListGET /v1/propagation/p526knifeedge/
Heathcliff.V1Apiv1PropagationP526knifeedgePartialUpdatePATCH /v1/propagation/p526knifeedge/{id}/
Heathcliff.V1Apiv1PropagationP526knifeedgeReadGET /v1/propagation/p526knifeedge/{id}/
Heathcliff.V1Apiv1PropagationP526knifeedgeUpdatePUT /v1/propagation/p526knifeedge/{id}/
Heathcliff.V1Apiv1UsersListGET /v1/users/
Heathcliff.V1Apiv1UsersReadGET /v1/users/{id}/

Documentation for Models

Documentation for Authorization

token

  • Type: API key
  • API key parameter name: Token
  • Location: HTTP header