api
Api - JavaScript client for api MedicalHistory This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build date: 2016-04-29T06:31:04.537Z
- Build package: class io.swagger.codegen.languages.JavascriptClientCodegen
Installation
Node.js
Fornpm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install api --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/api then install it via:
npm install YOUR_USERNAME/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 Api = require('api');
var api = new Api.DefaultApi()
var token = "token_example"; // {String} token
var mainId = 789; // {Integer} \u5C31\u8BCA\u4EBAID.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getMedicalHistoryListPost(token, mainId, callback);
Documentation for API Endpoints
All URIs are relative to http://115.159.113.37:15550/
Class | Method | HTTP request | Description |
---|---|---|---|
Api.DefaultApi | getMedicalHistoryListPost | POST /getMedicalHistoryList | \u83B7\u53D6\u6307\u5B9AmainID\u75C5\u53F2\u5217\u8868 |
Api.DefaultApi | patientMedicalHistoryAddPost | POST /PatientMedicalHistory/add | \u6DFB\u52A0\u5C31\u8BCA\u4EBA\u75C5\u53F2 |
Api.DefaultApi | patientMedicalHistoryDeletePost | POST /PatientMedicalHistory/delete | \u5220\u9664\u5C31\u8BCA\u4EBA\u75C5\u53F2 |
Api.DefaultApi | patientMedicalHistorySelectPost | POST /PatientMedicalHistory/select | \u67E5\u8BE2\u5C31\u8BCA\u4EBA\u75C5\u53F2 |
Api.DefaultApi | patientMedicalHistoryUpdataPost | POST /PatientMedicalHistory/updata | \u4FEE\u6539\u5C31\u8BCA\u4EBA\u75C5\u53F2 |
Documentation for Models
Documentation for Authorization
All endpoints do not require authorization.