contracttracing v1.0.0
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
Class | Method | HTTP request | Description |
---|---|---|---|
Tracing.ContactsApi | getContacts | GET /contacts/{user} | Retrieve user contacts |
Tracing.EventsApi | deleteEventToken | DELETE /event/{token} | Disable type 2 event by token |
Tracing.EventsApi | getEventToken | GET /event/{token} | Get type 2 event by token |
Tracing.EventsApi | getEvents | GET /events | GET all events |
Tracing.EventsApi | patchEventToken | PATCH /event/{token} | Enable type 2 event by token |
Tracing.EventsApi | postEventToken | POST /event/{token} | Create new type 2 event |
Tracing.EventsApi | putEventToken | PUT /event/{token} | Update type 2 event by token |
Tracing.SchemasApi | getSchemas | GET /schemas | Get event schemas |
Tracing.TracesApi | deleteTraceCod | DELETE /trace/{cod} | |
Tracing.TracesApi | getEvent | GET /trace/{token} | Get traces by token |
Tracing.TracesApi | postApiTracingToken | POST /trace/{token} | Insert new trace |
Documentation for Models
- Tracing.Body
- Tracing.Body1
- Tracing.Body2
- Tracing.Contact
- Tracing.EventtokenRequest
- Tracing.EventtokenRequest1
- Tracing.EventtokenRequest1Info
- Tracing.EventtokenRequestInfo
- Tracing.InlineResponse200
- Tracing.InlineResponse2001
- Tracing.InlineResponse2001Error
- Tracing.InlineResponse2001Result
- Tracing.InlineResponse200Error
- Tracing.InlineResponse200Result
- Tracing.InlineResponse404
- Tracing.InlineResponse404Error
- Tracing.ResponseCommon
- Tracing.ResponseCommonError
- Tracing.Token1
- Tracing.Token1Info
- Tracing.Token2
- Tracing.Token2Info
- Tracing.TracetokenRequest
Documentation for Authorization
auth-JWT
3 years ago