1.0.0 • Published 7 years ago

education_manage_api v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
7 years ago

education_manage_api

EducationManageApi - JavaScript client for education_manage_api 教务管理,包括学生信息,成绩管理 This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: class 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 education_manage_api --save

git

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

    npm install YOUR_USERNAME/education_manage_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 EducationManageApi = require('education_manage_api');

var defaultClient = EducationManageApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: education_auth
var education_auth = defaultClient.authentications['education_auth'];
education_auth.accessToken = "YOUR ACCESS TOKEN"

var api = new EducationManageApi.StudentsApi()

var id = "id_example"; // {String} 

var apiKey = "apiKey_example"; // {String} 


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

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
EducationManageApi.StudentsApistudentsIdDeleteDELETE /students/{id}delete student info
EducationManageApi.StudentsApistudentsIdGetGET /students/{id}get student info
EducationManageApi.StudentsApistudentsIdPutPUT /students/{id}update student info
EducationManageApi.StudentsApistudentsLoginPostPOST /students/loginstudent login
EducationManageApi.StudentsApistudentsRegistePostPOST /students/registestudent registe

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: api_Key
  • Location: HTTP header

education_auth