@invi7x/api_documentation v0.1.3
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
Class | Method | HTTP request | Description |
---|---|---|---|
ApiDocumentation.BasicErrorControllerApi | errorUsingDELETE | DELETE /error | error |
ApiDocumentation.BasicErrorControllerApi | errorUsingGET | GET /error | error |
ApiDocumentation.BasicErrorControllerApi | errorUsingHEAD | HEAD /error | error |
ApiDocumentation.BasicErrorControllerApi | errorUsingOPTIONS | OPTIONS /error | error |
ApiDocumentation.BasicErrorControllerApi | errorUsingPATCH | PATCH /error | error |
ApiDocumentation.BasicErrorControllerApi | errorUsingPOST | POST /error | error |
ApiDocumentation.BasicErrorControllerApi | errorUsingPUT | PUT /error | error |
ApiDocumentation.DiaryControllerApi | deleteDiaryUsingDELETE | DELETE /api/diaries/{id} | Deletes diary object |
ApiDocumentation.DiaryControllerApi | findDiariesUsingGET | GET /api/diaries | Responds with a list of diaries |
ApiDocumentation.DiaryControllerApi | findDiaryUsingGET | GET /api/diaries/{id} | Responds with a diary object |
ApiDocumentation.DiaryControllerApi | saveDiaryUsingPOST | POST /api/diaries/ | Saves new diary object |
ApiDocumentation.DiaryControllerApi | updateDiaryUsingPUT | PUT /api/diaries/{id} | Updates a diary object |
ApiDocumentation.ExaminationControllerApi | findExaminationUsingGET | GET /api/examinations/{id} | Responds with an examination object |
ApiDocumentation.ExaminationControllerApi | findExaminationsUsingGET | GET /api/examinations | Responds with a list of examinations |
ApiDocumentation.ExaminationControllerApi | saveExaminationUsingPOST | POST /api/examinations | Saves new Examination object |
ApiDocumentation.ExportControllerApi | exportExaminationFeaturesUsingGET | GET /api/export/examination_feature_set.csv | Responds with a list of diaries |
ApiDocumentation.LocationDataControllerApi | getMatchingLocationsUsingPOST | POST /locations/check | Responds with a list of matched locations |
ApiDocumentation.LocationDataControllerApi | getMatchingPlacesUsingPOST | POST /locations/checkp | Responds with a list of matched predefined places |
ApiDocumentation.LocationDataControllerApi | uploadLocationDataUsingPOST | POST /locations/upload | Responds with a list of diaries, if parameters are set it will respond with a list of contacts taken between start and finish |
ApiDocumentation.OperationHandlerApi | handleUsingGET | GET /actuator/health/** | handle |
ApiDocumentation.OperationHandlerApi | handleUsingGET1 | GET /actuator/health | handle |
ApiDocumentation.OperationHandlerApi | handleUsingGET2 | GET /actuator/info | handle |
ApiDocumentation.SymptomControllerApi | findSymptomsUsingGET | GET /api/symptoms | Responds with a list of symptoms |
ApiDocumentation.SymptomControllerApi | findUserUsingGET | GET /api/symptoms/{id} | Responds with a symptom object |
ApiDocumentation.SymptomControllerApi | saveSymptomUsingPOST | POST /api/symptoms | Saves new Symptom object |
ApiDocumentation.UserControllerApi | deleteUserUsingDELETE | DELETE /api/users/{id} | Deletes user object |
ApiDocumentation.UserControllerApi | findUserUsingGET1 | GET /api/users/{id} | Responds with a user object |
ApiDocumentation.UserControllerApi | findUsersUsingGET | GET /api/users | Responds with a list of users |
ApiDocumentation.UserControllerApi | saveUserUsingPOST | POST /api/users | Saves new User object |
ApiDocumentation.UserControllerApi | updateUserUsingPUT | PUT /api/users/{id} | Updates a user object |
ApiDocumentation.WebMvcLinksHandlerApi | linksUsingGET | GET /actuator | links |
Documentation for Models
- ApiDocumentation.ContactEntry
- ApiDocumentation.ContactEntryDTO
- ApiDocumentation.CorrespondenceDetails
- ApiDocumentation.CorrespondenceDetailsDTO
- ApiDocumentation.Diary
- ApiDocumentation.DiaryDTO
- ApiDocumentation.Duration
- ApiDocumentation.Examination
- ApiDocumentation.ExaminationDTO
- ApiDocumentation.Link
- ApiDocumentation.Location
- ApiDocumentation.LocationMatch
- ApiDocumentation.ModelAndView
- ApiDocumentation.PlaceMatch
- ApiDocumentation.PlaceVisit
- ApiDocumentation.Symptom
- ApiDocumentation.SymptomDTO
- ApiDocumentation.TimeLineObject
- ApiDocumentation.TimelineJsonRoot
- ApiDocumentation.User
- ApiDocumentation.UserDTO
- ApiDocumentation.View
Documentation for Authorization
All endpoints do not require authorization.