1.0.0 • Published 8 years ago

school_api v1.0.0

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

school_api

SchoolApi - JavaScript client for school_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 school_api --save

git

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

    npm install YOUR_USERNAME/school_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 SchoolApi = require('school_api');

var api = new SchoolApi.AccountApi()

var model = new SchoolApi.AddExternalLoginBindingModel(); // {AddExternalLoginBindingModel} 


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

Documentation for API Endpoints

All URIs are relative to http://localhost:61789

ClassMethodHTTP requestDescription
SchoolApi.AccountApiaccountAddExternalLoginPOST /api/Account/AddExternalLogin
SchoolApi.AccountApiaccountChangePasswordPOST /api/Account/ChangePassword
SchoolApi.AccountApiaccountGetExternalLoginGET /api/Account/ExternalLogin
SchoolApi.AccountApiaccountGetExternalLoginsGET /api/Account/ExternalLogins
SchoolApi.AccountApiaccountGetManageInfoGET /api/Account/ManageInfo
SchoolApi.AccountApiaccountGetUserInfoGET /api/Account/UserInfo
SchoolApi.AccountApiaccountLogoutPOST /api/Account/Logout
SchoolApi.AccountApiaccountRegisterPOST /api/Account/Register
SchoolApi.AccountApiaccountRegisterExternalPOST /api/Account/RegisterExternal
SchoolApi.AccountApiaccountRemoveLoginPOST /api/Account/RemoveLogin
SchoolApi.AccountApiaccountSetPasswordPOST /api/Account/SetPassword
SchoolApi.StudentsApistudentsDeleteStudentDELETE /api/Students/{id}
SchoolApi.StudentsApistudentsGetStudentGET /api/Students/{id}
SchoolApi.StudentsApistudentsGetStudentsGET /api/Students
SchoolApi.StudentsApistudentsPostStudentPOST /api/Students
SchoolApi.StudentsApistudentsPutStudentPUT /api/Students/{id}
SchoolApi.ValuesApivaluesDeleteDELETE /api/Values/{id}
SchoolApi.ValuesApivaluesGetGET /api/Values
SchoolApi.ValuesApivaluesGet_0GET /api/Values/{id}
SchoolApi.ValuesApivaluesPostPOST /api/Values
SchoolApi.ValuesApivaluesPutPUT /api/Values/{id}

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.