1.0.0 • Published 3 years ago

contracttracing v1.0.0

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

tracing

Tracing - JavaScript client for tracing Il microservizo \"tracing\" si occupa del tracciamento delle persone che frequentano simultaneamente e nello stesso luogo un certo evento. Il microservizoo tracing utilizza il DB tracing. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0
  • Build package: io.swagger.codegen.v3.generators.javascript.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 tracing --save

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):

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 Tracing = require('tracing');
var defaultClient = Tracing.ApiClient.instance;


var api = new Tracing.ContactsApi()
var user = "user_example"; // {String} utente di cui tracciare i contatti
var from = new Date("2013-10-20"); // {Date} Inzio rielevamento
var to = new Date("2013-10-20"); // {Date} Fine rielevamento
var error = 30; // {Number} Intervallo di tollerenza sulla registrazione

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

Documentation for API Endpoints

All URIs are relative to http://192.168.29.239:8892/api/tracing

ClassMethodHTTP requestDescription
Tracing.ContactsApigetContactsGET /contacts/{user}Retrieve user contacts
Tracing.EventsApideleteEventTokenDELETE /event/{token}Disable type 2 event by token
Tracing.EventsApigetEventTokenGET /event/{token}Get type 2 event by token
Tracing.EventsApigetEventsGET /eventsGET all events
Tracing.EventsApipatchEventTokenPATCH /event/{token}Enable type 2 event by token
Tracing.EventsApipostEventTokenPOST /event/{token}Create new type 2 event
Tracing.EventsApiputEventTokenPUT /event/{token}Update type 2 event by token
Tracing.SchemasApigetSchemasGET /schemasGet event schemas
Tracing.TracesApideleteTraceCodDELETE /trace/{cod}
Tracing.TracesApigetEventGET /trace/{token}Get traces by token
Tracing.TracesApipostApiTracingTokenPOST /trace/{token}Insert new trace

Documentation for Models

Documentation for Authorization

auth-JWT

1.0.0

3 years ago