1.0.0 • Published 6 years ago

@lab05/lab05_ v1.0.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
6 years ago

my_api

MyApi - JavaScript client for my_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: v1
  • Build package: io.swagger.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 my_api --save
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

Finally, switch to the directory you want to use your my_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('my_api') in javascript files from the directory you ran the last command above from.

git

If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/my_api then install it via:

    npm install YOUR_USERNAME/my_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, that's to say your javascript file where you actually use this library):

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 MyApi = require('my_api');

var api = new MyApi.AccountApi()

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.accountAccessDeniedGet(callback);

Documentation for API Endpoints

All URIs are relative to https://localhost

ClassMethodHTTP requestDescription
MyApi.AccountApiaccountAccessDeniedGetGET /Account/AccessDenied
MyApi.AccountApiaccountConfirmEmailGetGET /Account/ConfirmEmail
MyApi.AccountApiaccountExternalLoginCallbackGetGET /Account/ExternalLoginCallback
MyApi.AccountApiaccountExternalLoginConfirmationPostPOST /Account/ExternalLoginConfirmation
MyApi.AccountApiaccountExternalLoginPostPOST /Account/ExternalLogin
MyApi.AccountApiaccountForgotPasswordConfirmationGetGET /Account/ForgotPasswordConfirmation
MyApi.AccountApiaccountForgotPasswordGetGET /Account/ForgotPassword
MyApi.AccountApiaccountForgotPasswordPostPOST /Account/ForgotPassword
MyApi.AccountApiaccountLockoutGetGET /Account/Lockout
MyApi.AccountApiaccountLoginGetGET /Account/Login
MyApi.AccountApiaccountLoginPostPOST /Account/Login
MyApi.AccountApiaccountLoginWith2faGetGET /Account/LoginWith2fa
MyApi.AccountApiaccountLoginWith2faPostPOST /Account/LoginWith2fa
MyApi.AccountApiaccountLoginWithRecoveryCodeGetGET /Account/LoginWithRecoveryCode
MyApi.AccountApiaccountLoginWithRecoveryCodePostPOST /Account/LoginWithRecoveryCode
MyApi.AccountApiaccountLogoutPostPOST /Account/Logout
MyApi.AccountApiaccountRegisterGetGET /Account/Register
MyApi.AccountApiaccountRegisterPostPOST /Account/Register
MyApi.AccountApiaccountResetPasswordConfirmationGetGET /Account/ResetPasswordConfirmation
MyApi.AccountApiaccountResetPasswordGetGET /Account/ResetPassword
MyApi.AccountApiaccountResetPasswordPostPOST /Account/ResetPassword
MyApi.CountryMedalCountsApiApiapiCountryMedalCountsApiByIdDeleteDELETE /api/CountryMedalCountsApi/{id}
MyApi.CountryMedalCountsApiApiapiCountryMedalCountsApiByIdGetGET /api/CountryMedalCountsApi/{id}
MyApi.CountryMedalCountsApiApiapiCountryMedalCountsApiByIdPutPUT /api/CountryMedalCountsApi/{id}
MyApi.CountryMedalCountsApiApiapiCountryMedalCountsApiGetGET /api/CountryMedalCountsApi
MyApi.CountryMedalCountsApiApiapiCountryMedalCountsApiPostPOST /api/CountryMedalCountsApi
MyApi.ManageApimanageChangePasswordGetGET /Manage/ChangePassword
MyApi.ManageApimanageChangePasswordPostPOST /Manage/ChangePassword
MyApi.ManageApimanageDisable2faPostPOST /Manage/Disable2fa
MyApi.ManageApimanageDisable2faWarningGetGET /Manage/Disable2faWarning
MyApi.ManageApimanageEnableAuthenticatorGetGET /Manage/EnableAuthenticator
MyApi.ManageApimanageEnableAuthenticatorPostPOST /Manage/EnableAuthenticator
MyApi.ManageApimanageExternalLoginsGetGET /Manage/ExternalLogins
MyApi.ManageApimanageGenerateRecoveryCodesGetGET /Manage/GenerateRecoveryCodes
MyApi.ManageApimanageIndexGetGET /Manage/Index
MyApi.ManageApimanageIndexPostPOST /Manage/Index
MyApi.ManageApimanageLinkLoginCallbackGetGET /Manage/LinkLoginCallback
MyApi.ManageApimanageLinkLoginPostPOST /Manage/LinkLogin
MyApi.ManageApimanageRemoveLoginPostPOST /Manage/RemoveLogin
MyApi.ManageApimanageResetAuthenticatorPostPOST /Manage/ResetAuthenticator
MyApi.ManageApimanageResetAuthenticatorWarningGetGET /Manage/ResetAuthenticatorWarning
MyApi.ManageApimanageSendVerificationEmailPostPOST /Manage/SendVerificationEmail
MyApi.ManageApimanageSetPasswordGetGET /Manage/SetPassword
MyApi.ManageApimanageSetPasswordPostPOST /Manage/SetPassword
MyApi.ManageApimanageTwoFactorAuthenticationGetGET /Manage/TwoFactorAuthentication

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.