1.0.3 • Published 6 years ago

api_simca v1.0.3

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

api_simca

ApiSimca - JavaScript client for api_simca SIMCA API Client This SDK is automatically generated by the Swagger Codegen project:

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 api_simca --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 api_simca from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('api_simca') 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 ApiSimca = require('api_simca');

var api = new ApiSimca.DatacontrollerApi()

var measurementId = 56; // {Number} measurementId

var pollutantId = 56; // {Number} pollutantId


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

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
ApiSimca.DatacontrollerApigetMeasurementPollutantDataUsingGETGET /api/data/v1/datagetMeasurementPollutantData
ApiSimca.MeasurementcontrollerApiaddValuesToMeasurementUsingPOSTPOST /api/measurement/v1/measurement/{measurementId}/add-valuesAdd values to a measurement
ApiSimca.MeasurementcontrollerApicreateMeasurementUsingPOSTPOST /api/measurement/v1/measurementCreate a measurement
ApiSimca.MeasurementcontrollerApideleteMeasurementUsingDELETEDELETE /api/measurement/v1/measurement/{measurementId}Delete a measurement
ApiSimca.MeasurementcontrollerApieditMeasurementUsingPUTPUT /api/measurement/v1/measurementEdit a measurement
ApiSimca.MeasurementcontrollerApigetMeasurementByIdUsingGETGET /api/measurement/v1/measurement/{measurementId}Get measurement by id
ApiSimca.MeasurementcontrollerApigetMeasurementUsingGETGET /api/measurement/v1/measurementsGet measurements (optional filters)
ApiSimca.PlacecontrollerApicreatePlaceUsingPOSTPOST /api/place/v1/placeCreate a place
ApiSimca.PlacecontrollerApideleteLugarUsingDELETEDELETE /api/place/v1/place/{idPlace}Delete a place
ApiSimca.PlacecontrollerApieditPlaceUsingPUTPUT /api/place/v1/placeEdit a place
ApiSimca.PlacecontrollerApigetPlaceUsingGETGET /api/place/v1/place/{idPlace}Get a place
ApiSimca.PlacecontrollerApigetPlacesUsingGETGET /api/place/v1/placesGet all places
ApiSimca.PollutantcontrollerApicreatePollutantUsingPOSTPOST /api/pollutant/v1/pollutantCreate a pollutant
ApiSimca.PollutantcontrollerApideletePollutantUsingDELETEDELETE /api/pollutant/v1/pollutant/{idPollutant}Delete a pollutant
ApiSimca.PollutantcontrollerApieditPollutantUsingPUTPUT /api/pollutant/v1/pollutantEdit a pollutant
ApiSimca.PollutantcontrollerApigetPollutantUsingGETGET /api/pollutant/v1/pollutant/{idPollutant}Get a pollutant
ApiSimca.PollutantcontrollerApigetPollutantsUsingGETGET /api/pollutant/v1/pollutantsGet all pollutants
ApiSimca.TransactioncontrollerApicreatePollutantUsingPOST1POST /api/transaction/v1/donationHandle transaction
ApiSimca.UsercontrollerApiaddUserUsingPOSTPOST /api/user/v1/userCreate a user
ApiSimca.UsercontrollerApicheckEmailConfirmationStatusUsingGETGET /api/user/v1/confirm-emailCheck an email confirmation status
ApiSimca.UsercontrollerApicheckPasswordResetRequestStatusUsingGETGET /api/user/v1/password-resetCheck password reset request status
ApiSimca.UsercontrollerApiconfirmEmailUsingPUTPUT /api/user/v1/confirm-emailConfirm email account
ApiSimca.UsercontrollerApideleteUserUsingDELETEDELETE /api/user/v1/userDelete a user
ApiSimca.UsercontrollerApigetUserByUsernameUsingGETGET /api/user/v1/user/by-username/{userName}Get user by username
ApiSimca.UsercontrollerApigetUserUsingGETGET /api/user/v1/user/{id}Get user by id
ApiSimca.UsercontrollerApigetUsersUsingGETGET /api/user/v1/usersGet all users
ApiSimca.UsercontrollerApirequestPasswordResetUsingPOSTPOST /api/user/v1/password-resetRequest a password reset
ApiSimca.UsercontrollerApiresetPasswordUsingPUTPUT /api/user/v1/password-resetReset user password
ApiSimca.UserprofilecontrollerApieditUserProfileUsingPUTPUT /api/userprofile/v1/profileEdit a user profile
ApiSimca.UserprofilecontrollerApigetUserProfileUsingGETGET /api/userprofile/v1/profile/{id}Get user profile

Documentation for Models

Documentation for Authorization

oauth2schema

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago