0.1.3 • Published 4 years ago

@invi7x/api_documentation v0.1.3

Weekly downloads
5
License
Apache 2.0
Repository
-
Last release
4 years ago

api_documentation

ApiDocumentation - JavaScript client for api_documentation Api Documentation This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0
  • Build package: org.openapitools.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 api_documentation --save

Finally, you need to build the module:

npm run build
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

To use the link you just defined in your project, switch to the directory you want to use your api_documentation from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

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 ApiDocumentation = require('api_documentation');


var api = new ApiDocumentation.BasicErrorControllerApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.errorUsingDELETE(callback);

Documentation for API Endpoints

All URIs are relative to http://master-7rqtwti-2fay4tys5mlti.de-2.platformsh.site

ClassMethodHTTP requestDescription
ApiDocumentation.BasicErrorControllerApierrorUsingDELETEDELETE /errorerror
ApiDocumentation.BasicErrorControllerApierrorUsingGETGET /errorerror
ApiDocumentation.BasicErrorControllerApierrorUsingHEADHEAD /errorerror
ApiDocumentation.BasicErrorControllerApierrorUsingOPTIONSOPTIONS /errorerror
ApiDocumentation.BasicErrorControllerApierrorUsingPATCHPATCH /errorerror
ApiDocumentation.BasicErrorControllerApierrorUsingPOSTPOST /errorerror
ApiDocumentation.BasicErrorControllerApierrorUsingPUTPUT /errorerror
ApiDocumentation.DiaryControllerApideleteDiaryUsingDELETEDELETE /api/diaries/{id}Deletes diary object
ApiDocumentation.DiaryControllerApifindDiariesUsingGETGET /api/diariesResponds with a list of diaries
ApiDocumentation.DiaryControllerApifindDiaryUsingGETGET /api/diaries/{id}Responds with a diary object
ApiDocumentation.DiaryControllerApisaveDiaryUsingPOSTPOST /api/diaries/Saves new diary object
ApiDocumentation.DiaryControllerApiupdateDiaryUsingPUTPUT /api/diaries/{id}Updates a diary object
ApiDocumentation.ExaminationControllerApifindExaminationUsingGETGET /api/examinations/{id}Responds with an examination object
ApiDocumentation.ExaminationControllerApifindExaminationsUsingGETGET /api/examinationsResponds with a list of examinations
ApiDocumentation.ExaminationControllerApisaveExaminationUsingPOSTPOST /api/examinationsSaves new Examination object
ApiDocumentation.ExportControllerApiexportExaminationFeaturesUsingGETGET /api/export/examination_feature_set.csvResponds with a list of diaries
ApiDocumentation.LocationDataControllerApigetMatchingLocationsUsingPOSTPOST /locations/checkResponds with a list of matched locations
ApiDocumentation.LocationDataControllerApigetMatchingPlacesUsingPOSTPOST /locations/checkpResponds with a list of matched predefined places
ApiDocumentation.LocationDataControllerApiuploadLocationDataUsingPOSTPOST /locations/uploadResponds with a list of diaries, if parameters are set it will respond with a list of contacts taken between start and finish
ApiDocumentation.OperationHandlerApihandleUsingGETGET /actuator/health/**handle
ApiDocumentation.OperationHandlerApihandleUsingGET1GET /actuator/healthhandle
ApiDocumentation.OperationHandlerApihandleUsingGET2GET /actuator/infohandle
ApiDocumentation.SymptomControllerApifindSymptomsUsingGETGET /api/symptomsResponds with a list of symptoms
ApiDocumentation.SymptomControllerApifindUserUsingGETGET /api/symptoms/{id}Responds with a symptom object
ApiDocumentation.SymptomControllerApisaveSymptomUsingPOSTPOST /api/symptomsSaves new Symptom object
ApiDocumentation.UserControllerApideleteUserUsingDELETEDELETE /api/users/{id}Deletes user object
ApiDocumentation.UserControllerApifindUserUsingGET1GET /api/users/{id}Responds with a user object
ApiDocumentation.UserControllerApifindUsersUsingGETGET /api/usersResponds with a list of users
ApiDocumentation.UserControllerApisaveUserUsingPOSTPOST /api/usersSaves new User object
ApiDocumentation.UserControllerApiupdateUserUsingPUTPUT /api/users/{id}Updates a user object
ApiDocumentation.WebMvcLinksHandlerApilinksUsingGETGET /actuatorlinks

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.