evasq_api v1.0.7
evasq_api
EvasqApi - JavaScript client for evasq_api API used by EVASQ platform to login, get surveys questions and post patients answers This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0
- Package version: 1.0
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit http://nathanquinteiro.ml
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 evasq_api --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/evasq_api then install it via:
npm install YOUR_USERNAME/evasq_api --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.
Getting Started
Please follow the installation instruction and execute the following JS code:
var EvasqApi = require('evasq_api');
var api = new EvasqApi.PatientApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.patientGet(callback);
Documentation for API Endpoints
All URIs are relative to http://http://evasq.tic.heia-fr.ch
Class | Method | HTTP request | Description |
---|---|---|---|
EvasqApi.PatientApi | patientGet | GET /patient | Retrieves one or more patient |
EvasqApi.PatientApi | patientPatientIdGet | GET /patient/{patientId} | Retrieves a patient document |
EvasqApi.PatientApi | patientPatientIdPatch | PATCH /patient/{patientId} | Updates a patient document |
EvasqApi.PatientApi | patientPost | POST /patient | Stores one or more patient |
EvasqApi.ResultApi | resultGet | GET /result | Retrieves one or more result |
EvasqApi.ResultApi | resultPost | POST /result | Stores one or more result |
EvasqApi.ResultApi | resultResultIdGet | GET /result/{resultId} | Retrieves a result document |
EvasqApi.ResultApi | resultResultIdPatch | PATCH /result/{resultId} | Updates a result document |
EvasqApi.SurveyApi | surveyDelete | DELETE /survey | Deletes all survey |
EvasqApi.SurveyApi | surveyGet | GET /survey | Retrieves one or more survey |
EvasqApi.SurveyApi | surveyPost | POST /survey | Stores one or more survey |
EvasqApi.SurveyApi | surveySurveyIdDelete | DELETE /survey/{surveyId} | Deletes a survey document |
EvasqApi.SurveyApi | surveySurveyIdGet | GET /survey/{surveyId} | Retrieves a survey document |
EvasqApi.SurveyApi | surveySurveyIdPatch | PATCH /survey/{surveyId} | Updates a survey document |
Documentation for Models
Documentation for Authorization
All endpoints do not require authorization.