heathcliff-js v0.1.0
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
Class | Method | HTTP request | Description |
---|---|---|---|
Heathcliff.V1Api | v1AntennasFilesCreate | POST /v1/antennas/files/ | |
Heathcliff.V1Api | v1AntennasFilesDelete | DELETE /v1/antennas/files/{id}/ | |
Heathcliff.V1Api | v1AntennasFilesList | GET /v1/antennas/files/ | |
Heathcliff.V1Api | v1AntennasFilesPartialUpdate | PATCH /v1/antennas/files/{id}/ | |
Heathcliff.V1Api | v1AntennasFilesRead | GET /v1/antennas/files/{id}/ | |
Heathcliff.V1Api | v1AntennasFilesUpdate | PUT /v1/antennas/files/{id}/ | |
Heathcliff.V1Api | v1AntennasPatternsCreate | POST /v1/antennas/patterns/ | |
Heathcliff.V1Api | v1AntennasPatternsDelete | DELETE /v1/antennas/patterns/{id}/ | |
Heathcliff.V1Api | v1AntennasPatternsList | GET /v1/antennas/patterns/ | |
Heathcliff.V1Api | v1AntennasPatternsPartialUpdate | PATCH /v1/antennas/patterns/{id}/ | |
Heathcliff.V1Api | v1AntennasPatternsRead | GET /v1/antennas/patterns/{id}/ | |
Heathcliff.V1Api | v1AntennasPatternsUpdate | PUT /v1/antennas/patterns/{id}/ | |
Heathcliff.V1Api | v1CollectionsCreate | POST /v1/collections/ | |
Heathcliff.V1Api | v1CollectionsDelete | DELETE /v1/collections/{id}/ | |
Heathcliff.V1Api | v1CollectionsList | GET /v1/collections/ | |
Heathcliff.V1Api | v1CollectionsPartialUpdate | PATCH /v1/collections/{id}/ | |
Heathcliff.V1Api | v1CollectionsRead | GET /v1/collections/{id}/ | |
Heathcliff.V1Api | v1CollectionsUpdate | PUT /v1/collections/{id}/ | |
Heathcliff.V1Api | v1FeaturesPointCreate | POST /v1/features/point/ | |
Heathcliff.V1Api | v1FeaturesPointDelete | DELETE /v1/features/point/{id}/ | |
Heathcliff.V1Api | v1FeaturesPointList | GET /v1/features/point/ | |
Heathcliff.V1Api | v1FeaturesPointPartialUpdate | PATCH /v1/features/point/{id}/ | |
Heathcliff.V1Api | v1FeaturesPointRead | GET /v1/features/point/{id}/ | |
Heathcliff.V1Api | v1FeaturesPointUpdate | PUT /v1/features/point/{id}/ | |
Heathcliff.V1Api | v1FeaturesProfileCreate | POST /v1/features/profile/ | |
Heathcliff.V1Api | v1FeaturesProfileDelete | DELETE /v1/features/profile/{id}/ | |
Heathcliff.V1Api | v1FeaturesProfileList | GET /v1/features/profile/ | |
Heathcliff.V1Api | v1FeaturesProfilePartialUpdate | PATCH /v1/features/profile/{id}/ | |
Heathcliff.V1Api | v1FeaturesProfileRead | GET /v1/features/profile/{id}/ | |
Heathcliff.V1Api | v1FeaturesProfileUpdate | PUT /v1/features/profile/{id}/ | |
Heathcliff.V1Api | v1FilesCreate | POST /v1/files/ | |
Heathcliff.V1Api | v1FilesDelete | DELETE /v1/files/{id}/ | |
Heathcliff.V1Api | v1FilesList | GET /v1/files/ | |
Heathcliff.V1Api | v1FilesPartialUpdate | PATCH /v1/files/{id}/ | |
Heathcliff.V1Api | v1FilesRead | GET /v1/files/{id}/ | |
Heathcliff.V1Api | v1FilesUpdate | PUT /v1/files/{id}/ | |
Heathcliff.V1Api | v1JobsCreate | POST /v1/jobs/ | |
Heathcliff.V1Api | v1JobsDelete | DELETE /v1/jobs/{id}/ | |
Heathcliff.V1Api | v1JobsList | GET /v1/jobs/ | |
Heathcliff.V1Api | v1JobsPartialUpdate | PATCH /v1/jobs/{id}/ | |
Heathcliff.V1Api | v1JobsRead | GET /v1/jobs/{id}/ | |
Heathcliff.V1Api | v1JobsUpdate | PUT /v1/jobs/{id}/ | |
Heathcliff.V1Api | v1List | GET /v1/ | |
Heathcliff.V1Api | v1PropagationList | GET /v1/propagation/ | |
Heathcliff.V1Api | v1PropagationP526knifeedgeCreate | POST /v1/propagation/p526knifeedge/ | |
Heathcliff.V1Api | v1PropagationP526knifeedgeDelete | DELETE /v1/propagation/p526knifeedge/{id}/ | |
Heathcliff.V1Api | v1PropagationP526knifeedgeList | GET /v1/propagation/p526knifeedge/ | |
Heathcliff.V1Api | v1PropagationP526knifeedgePartialUpdate | PATCH /v1/propagation/p526knifeedge/{id}/ | |
Heathcliff.V1Api | v1PropagationP526knifeedgeRead | GET /v1/propagation/p526knifeedge/{id}/ | |
Heathcliff.V1Api | v1PropagationP526knifeedgeUpdate | PUT /v1/propagation/p526knifeedge/{id}/ | |
Heathcliff.V1Api | v1UsersList | GET /v1/users/ | |
Heathcliff.V1Api | v1UsersRead | GET /v1/users/{id}/ |
Documentation for Models
- Heathcliff.Antenna
- Heathcliff.AntennaPatternFile
- Heathcliff.DatasetCollections
- Heathcliff.GeoDataset
- Heathcliff.Job
- Heathcliff.P526KnifeEdge
- Heathcliff.Point
- Heathcliff.Profile
- Heathcliff.User
Documentation for Authorization
token
- Type: API key
- API key parameter name: Token
- Location: HTTP header
6 years ago