Skip to content

breadam/ka-mobile-api

Repository files navigation

kolay_asistan_mobile_api

KolayAsistanMobileApi - JavaScript client for kolay_asistan_mobile_api Kolay Asistan mobile application api layer. Revision Date: 25.04.2023 This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 0.0.10
  • Package version: 0.0.10
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit

Installation

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install kolay_asistan_mobile_api --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 kolay_asistan_mobile_api 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 KolayAsistanMobileApi = require('kolay_asistan_mobile_api');


var api = new KolayAsistanMobileApi.AuthorizationApi()
var deviceStatusDTO = new KolayAsistanMobileApi.DeviceStatusDTO(); // {DeviceStatusDTO} 
api.authControllerGetDeviceStatus(deviceStatusDTO).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://ka-mobile-api.herokuapp.com/api

Class Method HTTP request Description
KolayAsistanMobileApi.AuthorizationApi authControllerGetDeviceStatus POST /auth/get-device-status Find Device
KolayAsistanMobileApi.AuthorizationApi authControllerLoggedDetail GET /auth/me Logged User Detail
KolayAsistanMobileApi.AuthorizationApi authControllerLogin POST /auth/login Login
KolayAsistanMobileApi.AuthorizationApi authControllerRegisterUser POST /auth/register Register user
KolayAsistanMobileApi.BatchJobsApi batchJobControllerCabinetUpdate POST /jobs/cabinetUpdate Update medicines of cabinet
KolayAsistanMobileApi.BatchJobsApi batchJobControllerCreate POST /jobs Create
KolayAsistanMobileApi.BatchJobsApi batchJobControllerDelete DELETE /jobs/{id} Delete By Id
KolayAsistanMobileApi.BatchJobsApi batchJobControllerFindAll GET /jobs Find All
KolayAsistanMobileApi.BatchJobsApi batchJobControllerFindAllByUserId GET /jobs/findAllByUserId/{userId} Find all items of user
KolayAsistanMobileApi.BatchJobsApi batchJobControllerFindById GET /jobs/{id} Find By Id
KolayAsistanMobileApi.BatchJobsApi batchJobControllerUpdate PUT /jobs Update Item
KolayAsistanMobileApi.BloodGlucoseApi bloodGlucoseControllerCreate POST /blood-glucose Add item
KolayAsistanMobileApi.BloodGlucoseApi bloodGlucoseControllerDelete DELETE /blood-glucose/{id} Delete Item
KolayAsistanMobileApi.BloodGlucoseApi bloodGlucoseControllerFindUserAllItems GET /blood-glucose/findUserAllItems Find User All Items
KolayAsistanMobileApi.BloodGlucoseApi bloodGlucoseControllerFindUserItem GET /blood-glucose/findUserItem/{id} Find User Item
KolayAsistanMobileApi.BloodGlucoseApi bloodGlucoseControllerUpdate PUT /blood-glucose/{id} Update item
KolayAsistanMobileApi.BloodPressureApi bloodPressureControllerCreate POST /blood-pressure Add new item
KolayAsistanMobileApi.BloodPressureApi bloodPressureControllerDelete DELETE /blood-pressure/{id} Delete item
KolayAsistanMobileApi.BloodPressureApi bloodPressureControllerFindUserAllItems GET /blood-pressure/findUserAllItems Find User All Items
KolayAsistanMobileApi.BloodPressureApi bloodPressureControllerFindUserItem GET /blood-pressure/findUserItem/{id} Find User Item
KolayAsistanMobileApi.BloodPressureApi bloodPressureControllerUpdate PUT /blood-pressure/{id} Update item
KolayAsistanMobileApi.DeviceApi deviceControllerAddNewDevice POST /device Add new device
KolayAsistanMobileApi.DeviceApi deviceControllerDelete DELETE /device/{id} Delete
KolayAsistanMobileApi.DeviceApi deviceControllerFindUserAllItems GET /device/findUserAllItems Find User All Items
KolayAsistanMobileApi.DeviceApi deviceControllerFindUserItem GET /device/findUserItem/{id} Find User Item
KolayAsistanMobileApi.DeviceApi deviceControllerUpdate PUT /device/{id} Update device info
KolayAsistanMobileApi.MedicineCabinetApi cabinetControllerCreate POST /cabinet Add
KolayAsistanMobileApi.MedicineCabinetApi cabinetControllerDelete DELETE /cabinet/{id} Delete
KolayAsistanMobileApi.MedicineCabinetApi cabinetControllerFindUserAllItems GET /cabinet/findUserAllItems Find User All Items
KolayAsistanMobileApi.MedicineCabinetApi cabinetControllerFindUserItem GET /cabinet/findUserItem/{id} Find User Item
KolayAsistanMobileApi.MedicineCabinetApi cabinetControllerUpdate PUT /cabinet/{id} Update
KolayAsistanMobileApi.MedicineCabinetApi cabinetControllerUserCabinetSummary GET /cabinet/userCabinetSummary User Cabinet Summary
KolayAsistanMobileApi.MedicineReminderApi reminderControllerCreate POST /reminder Add
KolayAsistanMobileApi.MedicineReminderApi reminderControllerDelete DELETE /reminder/{id} Delete
KolayAsistanMobileApi.MedicineReminderApi reminderControllerFindUserAllItems GET /reminder/findUserAllItems Find User All Items
KolayAsistanMobileApi.MedicineReminderApi reminderControllerFindUserItem GET /reminder/findUserItem/{id} Find User Item
KolayAsistanMobileApi.MedicineReminderApi reminderControllerUpdate PUT /reminder/{id} Update
KolayAsistanMobileApi.UserApi userControllerUserDetail GET /user Logged User Detail
KolayAsistanMobileApi.UserApi userControllerUserUpdate PUT /user Logged user update
KolayAsistanMobileApi.UserApi userControllerUserUpdateStatus PUT /user/user-status Logged User Update Status
KolayAsistanMobileApi.UserApi userControllerValidateIdentityNo POST /user/validate-identity-no Validate identitiy no
KolayAsistanMobileApi.UserApprovalsApi approvalControllerCreate POST /approval Add
KolayAsistanMobileApi.UserApprovalsApi approvalControllerDelete DELETE /approval/{id} De
KolayAsistanMobileApi.UserApprovalsApi approvalControllerFindUserAllItems GET /approval/findUserAllItems Find User All Items
KolayAsistanMobileApi.UserApprovalsApi approvalControllerFindUserItem GET /approval/findUserItem/{id} Find User Item
KolayAsistanMobileApi.UserApprovalsApi approvalControllerUpdate PUT /approval/{id} Update

Documentation for Models

Documentation for Authorization

bearer

  • Type: Bearer authentication (JWT)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published